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

Stack unregisters and rebuilds all the extra-deps with each new (dev) stack version #2296

Closed
sjakobi opened this issue Jun 22, 2016 · 5 comments
Assignees
Milestone

Comments

@sjakobi
Copy link
Member

sjakobi commented Jun 22, 2016

While developing on stack, I see the following whenever I build a new executable:

~/s/stack $ stack install --fast --ghc-options -j
stack-1.1.3: unregistering
store-0.1.0.1: unregistering (missing dependencies: th-lift-instances, th-orphans, th-utilities)
th-lift-instances-0.1.7: unregistering (old configure information not found)
th-orphans-0.13.1: unregistering (missing dependencies: th-lift-instances)
th-utilities-0.1.1.0: unregistering (missing dependencies: th-orphans)
th-lift-instances-0.1.7: configure
th-lift-instances-0.1.7: build
path-0.5.8: configure
path-0.5.8: build
th-lift-instances-0.1.7: copy/register
th-orphans-0.13.1: configure
path-0.5.8: copy/register
th-orphans-0.13.1: build
path-io-1.1.0: configure
path-io-1.1.0: build
path-io-1.1.0: copy/register
th-orphans-0.13.1: copy/register
th-utilities-0.1.1.0: configure
th-utilities-0.1.1.0: build
th-utilities-0.1.1.0: copy/register
store-0.1.0.1: configure
store-0.1.0.1: build

I think this is due to some versioning feature in store. It's really annoying though.

@mgsloan
Copy link
Contributor

mgsloan commented Jun 24, 2016

Agreed, this is really annoying, I was aware of a more restricted version of this with ghci - mgsloan/store#53 . A simple fix is possible, but it would just be a patch to something that's a bit iffy anyway (good for original app, not so good for stack). A more comprehensive fix is in progress.

It is certainly something I intend to fix before any release with the store-ified stack.

I didn't realize it happened with each new dev version. I thought it was just when dependencies involved in the type info change, or if you use ghci to load stack.

@sjakobi
Copy link
Member Author

sjakobi commented Jul 8, 2016

Hypothesis from #2353:

It seems like perhaps the git hash for the stack binary is causing such invalidation.

@mgsloan
Copy link
Contributor

mgsloan commented Aug 2, 2016

I've got a branch. Pending release of store / etc.

@sjakobi
Copy link
Member Author

sjakobi commented Aug 9, 2016

Looks like this was fixed in #2425 and can be closed!?

Awesome work, @mgsloan! 👏

@mgsloan
Copy link
Contributor

mgsloan commented Aug 9, 2016

Yup! Thanks!

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

4 participants