-
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
"stack build" succeeds, but "stack build --only-configure" fails #920
Comments
That's actually the documented behavior:
Usage of the |
hmm, I see... It was actually using stack build servant-0.5
stack build servant-client-0.5
stack build servant-server-0.5
stack build --only-configure pinging @DanielG for some feedback I feel like I should close this issue and open one in |
We always call |
As mentioned in the original issue, and in the Perhaps the call should be |
We don't support multi-package stack projects yet though (going to add that now). We only apply this stuff when the stack file is next to the cabal file, so in the case where there are multiple packages this shouldn't even run. Are the commands in that case equivalent to the ones without |
using stack @ 7153be8 project was just scaffolded using @snoyberg I find this unregistering odd. Is it expected? something about local vs snapshot dbs? |
Can you set |
Almost, now I get this also with just
flags: {}
packages:
- '.'
- location:
git: https://github.com/aaronlevin/servant.git
commit: 48a5d1474aab40ad1fe79353a23f8abc428be90c
subdirs:
- servant
- servant-server
- servant-client
extra-dep: true
extra-deps: []
resolver: lts-3.3 |
That's a separate issue, thanks for reporting. I've fixed it on master. |
Thanks! executables are fixed now The "unregistering" still happens though, unless I run it twice, strange |
That's a known issue, #838, which is being worked on currently. |
Nice! 11e02a8 fixes the "unregistering" |
> stack build servant-0.5: build servant-0.5: install servant-client-0.5: configure servant-client-0.5: build servant-server-0.5: configure servant-server-0.5: build servant-client-0.5: install i-fail-when-only-configure-0.1.0.0: configure i-fail-when-only-configure-0.1.0.0: build i-fail-when-only-configure-0.1.0.0: install servant-server-0.5: install servant-server-0.5: install Completed all 4 actions.
> stack build --only-configure Progress: 3/4singleBuild: invariant violated, missing package ID missing singleBuild: invariant violated, missing package ID missing
the missing package ID is servant-0.5
(maybe stack should probably show the package ID instead of just "missing" as well?)
The text was updated successfully, but these errors were encountered: