Closed buzden closed 8 months ago
Almost two weeks passed, there were no comments (however, I'm not sure anyone has seen this). So, I'm going to merge this, since this is anyway a fix of undesired behaviour. Anyway, if @stefan-hoeck is against some of these changes, they are not fundamental and can be reverted easily.
Truly sorry for not replying on this, and thanks for the fix!
If we have local
pack.toml
s with alternative Idris commits set, currentlypack gc
will clean up all but only those in the localmostpack.toml
, including the version from the current pack collection. This commit fixes it,pack gc
now does not clean up an Idris commit mentioned in the current pack collection and in all localpack.toml
s all way up. It fixes #246.NB: if alternative Idris commit is not set in any local
pack.toml
s, the behaviour ofpack gc
should not change.Additonally, this PR has a small commit with changes not worth a separate PR.