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

[BUGS-6802] add support for pecl as source to check #14

Merged
merged 20 commits into from
Sep 19, 2023

Conversation

jazzsequence
Copy link
Contributor

@jazzsequence jazzsequence commented Sep 15, 2023

In https://github.com/pantheon-systems/cos-runtime-php (specifically here), we are actually using PECL as the source, but we're checking the GH mirror for versions. It's possible (see https://github.com/pantheon-systems/cos-runtime-php/pull/433 and https://github.com/php/pecl-web_services-oauth/tags as compared to https://pecl.php.net/package/oauth) that a package's version on GitHub might not match its version on PECL. This version mismatch can be confusing and problematic as we enact the Spiderman meme of figuring out which is the source of truth.

Spidermen pointing

This PR adds support for checking PECL for the latest version by making a curl request against the PECL API's latest.txt -- which is actually far simpler than checking the releases/tags on GitHub. Since we're sourcing from PECL, we should be able to check the actual source for the latest versions and use that rather than checking a source that's different from where we're actually getting the extension.

The actual change adds support for a new source param in the dependencies.yml. Currently, github, pecl and null (no value) are supported with github being the default if no source is defined. Tests and validations have been updated to support the new dependencies.yml parameter.

closes #13

@jazzsequence jazzsequence requested a review from a team as a code owner September 15, 2023 21:16
@jazzsequence jazzsequence self-assigned this Sep 15, 2023
bin/dependency-check-pr.sh Outdated Show resolved Hide resolved
bin/dependency-check-pr.sh Outdated Show resolved Hide resolved
bin/test-textfile.sh Outdated Show resolved Hide resolved
jazzsequence and others added 3 commits September 18, 2023 14:37
Co-authored-by: Phil Tyler <phil.tyler@pantheon.io>
Co-authored-by: Phil Tyler <phil.tyler@pantheon.io>
@jazzsequence jazzsequence merged commit 22a6f91 into main Sep 19, 2023
2 checks passed
@jazzsequence jazzsequence deleted the BUGS-6802-add-support-for-pecl-as-repo branch September 19, 2023 18:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Support for version checking latest package in PECL
3 participants