Skip to content
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

With interdependent targets, --only-configure fails, also affects ghci #2787

Closed
mgsloan opened this issue Nov 18, 2016 · 1 comment
Closed
Milestone

Comments

@mgsloan
Copy link
Contributor

mgsloan commented Nov 18, 2016

Repro: Run stack build --only-configure on store.

Result:

mgsloan@computer:~/fpco/store$ stack build --only-configure
WARNING: /home/mgsloan/fpco/store/store.cabal was generated with a newer version of hpack, please upgrade and try again.
store-core-0.3: configure
store-0.3: configure
Completed 2 action(s).
singleBuild: invariant violated, missing package ID missing

What's happening here is that the configure step for store expects to have a package ID for store-core. However, since it didn't get built, there is none.

This is problematic for the internal build flag --initial-build-steps, used for the resolution of #1364 . This means that the initial build steps aren't run for the downstream packages. For this flag, the ideal resolution would be to do a full build for packages that have downstream packages which depend on them.

@mgsloan
Copy link
Contributor Author

mgsloan commented Nov 19, 2016

Fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant