-
Notifications
You must be signed in to change notification settings - Fork 841
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
Local version of package is not rebuild / removed #2147
Comments
Is the file you've modified mentioned in
That's extremely mysterious. I've done a similar workflow many many times, so there must be something weird. While I realize that you've described some general steps to reproduce, can you please put together a list of specific steps? (preferably using packages that don't require 3rd party deps) |
I'll see if I can make a smaller repo case, but the concrete example is here: https://github.com/blitzcode/hue-dashboard/blob/v1.1/stack.yaml I have a single package that's not in Stackage as a dependency. I just had the problem again where I tried with a modified local version of the package, and then removed it from |
Thanks! Giving it a try. |
What made me pause was that I actually do get a configure/build step for |
EDIT: Nvm, I can reproduce. Looks like the issue is only when the local package version matches what was in extra-deps. |
I don't understand, this is just building the project? That's working just fine! The problem isn't happening with the executable project, it's with the dependency. The application builds/rebuilds etc., the problem only shows if I add |
Yeah, sorry, I was going a little quick with the repro. I do indeed see the issue, and have updated my comment. Thanks for reporting the problem and providing a repro! |
Ok, so far I cannot reproduce the issue with dirty modules in threepenny not causing build. Are you sure about that part? It could be that this is fixed in HEAD, I recently fixed a bug with missing files in the dirtiness checker. I can reproduce the issue where switching from local package to extra-dep with matching version doesn't cause a build. |
I think this may be solved as a consequence of #1265 Since that's coming soon-ish, I'll come back to this issue after. |
I tried with v1.1.0 installed from brew, but I also didn't try too hard to pin down the rebuild issue. I was mostly concerned with not being able to easily go back to the hackage dependency. I'll add some more detail when I try to work with the external package next, soon-ish. |
Finally fixed! Wish I'd seen that the fix was so straightforward. |
Second part of fix for stack not noticing switches between |
I have a dependencies on a package that's not in Stackage. I specify an
extra-deps
. Works as expected. If I now remove it from theextra-deps
, download the source from GitHub and add it inpackages
, it is rebuild and the local, modified version is used. So far so good. But:packages
, put the Hackage version back inextra-deps
, nothing changes eitherstack clean
it still seems to link to whatever binary of the local package it hadOnly deleting
.stack-work
makes it pick up on the changes and rebuild & link the Hackage version again. This is with stack v1.1.0 on OS X 10.10.The text was updated successfully, but these errors were encountered: