Skip to content
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

Could the "only-best-candidates" logic also be used for archived packages #738

Open
flemming-fridthjof opened this issue Oct 6, 2023 · 0 comments
Labels

Comments

@flemming-fridthjof
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant