Skip to content

Minimal rebuilds for add-source dependencies - #1292

Merged
23Skidoo merged 10 commits into
haskell:masterfrom
23Skidoo:minimal-rebuilds
Apr 26, 2013
Merged

23Skidoo merged 10 commits into
haskell:masterfrom
23Skidoo:minimal-rebuilds

Conversation

@23Skidoo

Copy link
Copy Markdown
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

tibbe commented Apr 26, 2013

Copy link
Copy Markdown
Contributor

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