Could the "only-best-candidates" logic also be used for archived packages
flemming-fridthjof opened this issue · comments
In our use of satis we would like to only make dist packages of the latest version of a project.
We've noticed that the "only-best-candidates" option exists for dependencies, but I could be nice if a likewise option also existed for the archive.
A solution could be to add a new config option to the archive segment which states that only the best package version candidate should be stored. Adjustments can them be made to the "isSkippable" part of "src/Builder/ArchiveBuilderHelper.php"
I've added a suggested patch which takes a lot of the "onlyBestCandidates" logic from "src/PackageSelection/PackageSelection.php".
satis-archive-only-best-candidates.txt