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

Relink-only seems to mess up dependency tracking #2976

Open
edsko opened this issue Dec 22, 2015 · 4 comments
Open

Relink-only seems to mess up dependency tracking #2976

edsko opened this issue Dec 22, 2015 · 4 comments

Comments

@edsko
Copy link
Contributor

edsko commented Dec 22, 2015

If we have a project with multiple libraries, with Y depending on X, if I make a change to X, and then call new-build in Y, it will not notice it needs to relink it with X. However, once I get in this situation, it seems something breaks and it will not notice it needs to recompile even when this involves more than relinking.

@dcoutts
Copy link
Contributor

dcoutts commented Mar 18, 2016

Need to know if this is still a problem, and if so specific instructions to reproduce.

@ezyang
Copy link
Contributor

ezyang commented Aug 24, 2016

@acarrico
Copy link

I've created a minimal test case for this annoying bug.

I don't think it is necessarily related to (https://ghc.haskell.org/trac/ghc/ticket/10161) since there is a new timestamp on the library. The executable is just stale. See the test case's readme, which shows the timestamps.

@acarrico
Copy link

BTW, I tested with this version:

[nix-shell:~/cabal-link-test]$ cabal --version
cabal-install version 2.0.0.1
compiled using version 2.0.1.0 of the Cabal library

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