Skip to content

Minimal rebuilds for add-source dependencies #1292

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

Merged
merged 10 commits into from
Apr 26, 2013

Conversation

23Skidoo
Copy link
Member

Fixes #1121.

Implemented by remembering timestamps for all add-source dependencies in a timestamp file, .cabal-sandbox/add-source-timestamps. reinstallAddSourceDeps now looks at the timestamp file record and the timestamps of the source files of a given add-source dependency to decide whether it is to be reinstalled. The timestamp record is first added by sandbox add-source and can later be updated/removed by reinstallAddSourceDeps/sandbox delete-source. User is allowed to (re)install add-source deps manually with cabal install [--reinstall], so this scheme sometimes errs on the side of caution.

In the future I'd like to get rid of the timestamp file and just keep that info in the index (so that there is less chance that it goes out of sync).

@tibbe
Copy link
Member

tibbe commented Apr 26, 2013

Some small comments otherwise everything looks good!

23Skidoo added a commit that referenced this pull request Apr 26, 2013
Minimal rebuilds for add-source dependencies
@23Skidoo 23Skidoo merged commit 65a67cc into haskell:master Apr 26, 2013
@23Skidoo 23Skidoo deleted the minimal-rebuilds branch April 26, 2013 20:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minimal rebuilds for add-source dependencies
2 participants