-
Notifications
You must be signed in to change notification settings - Fork 842
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
Success return code after there were build errors #365
Comments
What's your --version and --verbose output? |
|
It looks like what your report says is that: the first time I tried going through these steps with the latest version of stack, and did not reproduce the problem. Could you try latest master and let me know whether the problem still exists? |
I'm seeing this too. Again, on OSX, and with 0.0.3.0 and the new 0.1.0.0 release. Let me know if there's anything I can do to help track it down. |
Oddly, making a change to the |
The relevant stack.yaml and .cabal files would be useful. Basically, the closest you can get me to a reproducing test case is what I need to debug this. |
Okay, this replicates it reliably for me: https://github.com/krisajenkins/stack365 |
That actually makes sense, since the module being changed isn't listed in your .cabal file (it should be under your other-modules). The solution for #105 should address that by not relying on Cabal metadata exclusively. Can you confirm that adding your module to other-modules fixes the problem? |
It doesn't really. If I add It looks like all adding it into |
OK, got it. Your case helped isolate this. The problem is that, for executable-only packages, the package was still marked as being installed. I added a step to mark it as not installed before updating the timestamps, which seems to resolve the problem. Can you test out master? |
Yup, confirmed - that fixes it. (I did have to touch the cabal file first, but after I did that it worked reliably every time.) Thanks! |
For the record, that's against |
Thanks! |
I have been running this command to build and run my program:
If the build ever fails, this does the right thing and doesn't run
test
. However, if I then run the same command right away without modifying any files,stack build
returns a success code and thentest
is run.I expect
stack build
to return non-success if the last build failed.The text was updated successfully, but these errors were encountered: