-
Notifications
You must be signed in to change notification settings - Fork 132
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
Don't create spago.dhall on failed spago build #139
Comments
Hi @JamieBallingall, thanks for the report! Indeed that's not desiderable. The config gets created due to this line: What would a better behaviour be? Should we just fail here and prompt to run |
Honestly, the exact error message displayed isn't that important. It's unlikely that you ran For me the critical thing is that a failed I suppose we could get fancy and search parent directories for the relevant files and then build the first valid thing we find. I'm deeply ambivalent about that. Might be a little too clever. |
Yeah stack does that, and I love it because I can build from any subdirectory. It might be fancy, but it's really handy - I'll take a look at their implementation If it looks too complicated I'll just go with failing and prompting to run
Agreed, this is quite important 👍 |
I often mistakenly run
spago build
from some subdirectory. This, correctly, fails with a message about missingpackages.dhall
. However, it also creates a newspago.dhall
file in the current directory.It would be nice if it didn't.
The text was updated successfully, but these errors were encountered: