Prune repos published on packagist.org#121
Merged
schlessera merged 1 commit intowp-cli:masterfrom Jan 5, 2022
Merged
Conversation
schlessera
approved these changes
Jan 5, 2022
Member
|
@aaemnnosttv I merged this as-is for now. It would be great to have a PR with the script as well for future updates. |
This was referenced Jan 5, 2022
aaemnnosttv
added a commit
to aaemnnosttv/package-index
that referenced
this pull request
Jan 5, 2022
Contributor
Author
|
Thank you @schlessera! Here's the PR for the script 👍 #122 |
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.
This PR is intended to resolve the discrepancy between this package index and entries for packages by the same name on packagist.org.
The problem is that since this composer repository is no longer kept up to date, any packages referenced here end up getting stuck on old versions due to the precedence the wp-cli composer repository URL takes over the default
packagist.orgindex. See wp-cli/package-command#141 (comment)Releasing these packages from the index will ensure they continue to receive updates and are managed by the official Composer index instead.
I filtered this list using the following script which filters out lines for packages which exist on packagist.org by the exact same name. Perhaps it would make sense to include this in the
scriptspart of this repo for use in the future, but I can always include that in a separate PR.Note: this is probably obvious but merging this would still require the index to be regenerated which I'm not sure is automated but just thought I would mention 😄