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

Prefer Packagist over GitHub #94

Merged
merged 9 commits into from
Aug 7, 2018
Merged

Prefer Packagist over GitHub #94

merged 9 commits into from
Aug 7, 2018

Conversation

schlessera
Copy link
Member

When installing a package, Packagist will now be searched first.

When GitHub is chosen, the WP-CLI will try to guess how to interpret the @stable tag and produce a version constraint out of it.

Fixes #90

When installing a package, Packagist will now be searched first.

When GitHub is chosen, the WP-CLI will try to guess how to interpret the `@stable` tag and produce a verson constraint out of it.

Fixes #90
@@ -725,7 +729,14 @@ private function get_package_by_shortened_identifier( $package_name ) {
}
}

// Fall back to GitHub URL if we had no match in the package index.
// Check if the package exists on Packagist.
$url = "https://repo.packagist.org/p/{$package_name}.json";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually I was wrong above not the url 😄

To test the GitHub functionality, we need a custom commands stored in a GitHub repository that is not indexed in Packagist.

As Packagist does not prune old data when yuo `Delete` a repo, we need a new one that won't go into Packagist.
@schlessera schlessera merged commit bcc65ae into master Aug 7, 2018
@schlessera schlessera deleted the 90-prefer-packagist branch August 7, 2018 06:07
schlessera added a commit that referenced this pull request Jan 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants