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

Consider reconfiguring if $PATH changes #3138

Closed
ndmitchell opened this issue Apr 24, 2017 · 3 comments
Closed

Consider reconfiguring if $PATH changes #3138

ndmitchell opened this issue Apr 24, 2017 · 3 comments
Milestone

Comments

@ndmitchell
Copy link
Contributor

As per haskell/cabal#2015, it seems Cabal caches the $PATH when running configure and reuses it later. As a result, if a package needs a particular program on $PATH at compile time, a user who modifies their $PATH after a failure will continue to remain in a failure state until running a stack clean. Perhaps the $PATH should be considered an input dependency of configure steps?

@mgsloan
Copy link
Contributor

mgsloan commented Jun 6, 2017

Good to know! Yes, I think it makes sense to do a reconfigure. The alternative would be to just make this a warning, but that could easily be ignored. Marking as P1 since it has to do with build determinism

@mgsloan
Copy link
Contributor

mgsloan commented Dec 23, 2017

Fixing this will probably invalidate previous configure cache info, so ideally would be batched with any other pending changes to it. Would be possible to have support for reading the old cache version.

@snoyberg
Copy link
Contributor

See #4740

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

3 participants