-
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 build
in an empty directory downloads a new package cache
#231
Comments
Well, it's not exactly a failure condition. There are legitimate use cases here, e.g.:
So it seems at least somewhat reasonable for it to behave this way IMO. |
Perhaps an improvement to this behaviour would be explaining its intentions. I.e. "I don't have anything to do and I didn't find a cabal file, so I'm going to assume you want a configuration." |
What is How does that mesh with #59, and the idea that "It also caters to newbies reading books who just want to run ghc on a file. You can run stack ghc X.hs and it will download GHC if necessary, etc...". Would a yaml be created in the latter scenario? It would be nice if it wasn't necessary, since it is likely X.hs will be in a home directory, or in a directory full of other one-off test files. |
Fair point, maybe we should just change behavior to exiting if there's no .cabal file present. We already have plans to improve |
@chrisdone, or: "I don't have anything to do. Shall I run |
Fair points, indeed. I'm not really sure on this one. Going to think about it. |
Discussed with @chrisdone, we'll just exit |
OK, this is implemented, with the real solution to be handled via #253. Closing. |
That seems like extra work for a failure condition.
The text was updated successfully, but these errors were encountered: