Repository navigation
Garbage collection - #1482
Closed
cdrnet wants to merge 4 commits into
Closed
Garbage collection#1482cdrnet wants to merge 4 commits into
cdrnet wants to merge 4 commits into
Conversation
Member
|
I think GC is very important, but can you please send this against the v3 branch? I think this feature might come with some complications and therefor we should play it safe and add it to Paket 3.0 |
Member
Author
|
Of course, I'll open a new PR on v3 (rebased) |
Member
|
thx |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I've started on a proposal how we could implement garbage collection to clean up packages no longer needed in the
packagesfolder (and if possible the same forpaket-files). Addresses #1416.Since the packages folder is typically excluded from version control, we do not always have explicit information about a package being removed. What we do know is what packages are currently extracted in the packages folder, and what packages we actually expect to be there according to the lock file.
The proposed algorithm essentially goes through the subdirs of the packages folder, tries to imply group and package names, and drops all of these folders which we identify as a extracted package but are not known by the lock file (ignoring the version).
Questions: