-
Notifications
You must be signed in to change notification settings - Fork 841
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"stack sdist" does not include stack.yaml file by default #2105
Comments
@varosi Since sdists are typically used for hackage, they do not need to include stack.yaml files. That said, I can see it being valuable metadata to include. I can think of just one potential downside, which is that if you I think the upsides outweigh the downside, I'm in favor of making that change. Also, that stack version is old, you should probably upgrade. |
You can also put this in your
|
Yikes, that will be confusing for people who didn't intend to include |
I'm just giving it "stack sdist" to distribute whole package, not to upload 2016-05-10 23:14 GMT+03:00 Ian Jeffries [email protected]:
|
One reason to include it in the package is a future feature like #2122 |
How would this work for megarepos, where each project is in a subdirectory and there's a top-level stack.yaml? |
@quasicomputational Great question. It should be possible to generate an appropriate stack.yaml for each. This would look like:
With current YAML decoding / encoding, this would forget about any of the user's ordering, comments, or layout. But it should work. Doing better would be somewhat tracked by #115 |
Being explicit about listing the file in |
Currently when I do "stack sdist" it include *.cabal files, but doesn't include stack.yaml. So after distribution I cannot build what's in the archive with stack anymore.
Stack version 0.1.8.0 x86_64
The text was updated successfully, but these errors were encountered: