Title: Legacy package index prevents installation of current release of a package · Issue #141 · wp-cli/package-command · GitHub
Open Graph Title: Legacy package index prevents installation of current release of a package · Issue #141 · wp-cli/package-command
X Title: Legacy package index prevents installation of current release of a package · Issue #141 · wp-cli/package-command
Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior I'm trying to install a package, pressbooks/pb-cli, which i...
Open Graph Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior I'm trying to insta...
X Description: Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior I'm trying to i...
Opengraph URL: https://github.com/wp-cli/package-command/issues/141
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Legacy package index prevents installation of current release of a package","articleBody":"## Bug Report\r\n\r\n- [x] Yes, I reviewed the [contribution guidelines](https://make.wordpress.org/cli/handbook/contributing/).\r\n- [x] Yes, more specifically, I reviewed the guidelines on [how to write clear bug reports](https://make.wordpress.org/cli/handbook/bug-reports/).\r\n\r\n**Describe the current, buggy behavior**\r\n\r\nI'm trying to install a package, [pressbooks/pb-cli](https://github.com/pressbooks/pb-cli), which is listed in the now-deprecated [WP-CLI Package Index](https://wp-cli.org/package-index/).\r\n\r\nThe current release of the package is 2.1.0 (corresponding to https://github.com/pressbooks/pb-cli/commit/cc81de0ee946afad8abe291f4b59abb5237bf6ee). However, installing via the package command always installs the last release listed in the WP-CLI Package Index, which was 2.0.1 (corresponding to https://github.com/pressbooks/pb-cli/commit/9fb35e6129bbf51b53408671edce9bee5b75964d). If I try to specify the 2.1.0 version, I get the following error:\r\n\r\n```\r\nYour requirements could not be resolved to an installable set of packages.\r\nProblem 1\r\n - Root composer.json requires pressbooks/pb-cli 2.1.0, it is satisfiable by pressbooks/pb-cli[2.1.0] from composer repo (https://repo.packagist.org) but pressbooks/pb-cli[dev-master, dev-dev, 1.0.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 2.0.0, 2.0.1] from composer repo (https://wp-cli.org/package-index) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.\r\n```\r\n\r\n**Describe how other contributors can replicate this bug**\r\n\r\n- Run: `wp package install pressbooks/pb-cli`\r\n- Inspect lock file in `~/.wp-cli/packages/composer.lock`\r\n- Observe that the installed version is as follows:\r\n```js\r\n \"name\": \"pressbooks/pb-cli\",\r\n \"version\": \"dev-master\",\r\n \"source\": {\r\n \"type\": \"git\",\r\n \"url\": \"https://github.com/pressbooks/pb-cli.git\",\r\n \"reference\": \"9fb35e6129bbf51b53408671edce9bee5b75964d\"\r\n }\r\n }\r\n```\r\n- Run: `wp package uninstall pressbooks/pb-cli`\r\n- Run: `wp package install pressbooks/pb-cli:2.1.0`\r\n- Observe the error that ensues:\r\n```\r\nYour requirements could not be resolved to an installable set of packages.\r\nProblem 1\r\n - Root composer.json requires pressbooks/pb-cli 2.1.0, it is satisfiable by pressbooks/pb-cli[2.1.0] from composer repo (https://repo.packagist.org) but pressbooks/pb-cli[dev-master, dev-dev, 1.0.0, 1.2.0, 1.3.0, 1.4.0, 1.5.0, 1.5.1, 1.6.0, 1.6.1, 1.7.0, 1.8.0, 1.8.1, 1.8.2, 2.0.0, 2.0.1] from composer repo (https://wp-cli.org/package-index) has higher repository priority. The packages with higher priority do not match your constraint and are therefore not installable. See https://getcomposer.org/repoprio for details and assistance.\r\n```\r\n\r\n**Describe what you would expect as the correct outcome**\r\n\r\nAs the package index is no longer being updated, I'd expect Packagist to be the higher priority repository.\r\n\r\n**Let us know what environment you are running this on**\r\n\r\nOS:\tDarwin 20.5.0 Darwin Kernel Version 20.5.0: Sat May 8 05:10:33 PDT 2021; root:xnu-7195.121.3~9/RELEASE_X86_64 x86_64\r\nShell:\t/bin/zsh\r\nPHP binary:\t/usr/local/Cellar/php@7.4/7.4.20/bin/php\r\nPHP version:\t7.4.20\r\nphp.ini used:\t/usr/local/etc/php/7.4/php.ini\r\nMySQL binary:\t/usr/local/bin/mysql\r\nMySQL version:\tmysql Ver 15.1 Distrib 10.5.9-MariaDB, for osx10.16 (x86_64) using readline 5.1\r\nSQL modes:\tSTRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION\r\nWP-CLI root dir:\tphar://wp-cli.phar/vendor/wp-cli/wp-cli\r\nWP-CLI vendor dir:\tphar://wp-cli.phar/vendor\r\nWP_CLI phar path:\t/Users/ned/Sites/cli-test\r\nWP-CLI packages dir:\t/Users/ned/.wp-cli/packages/\r\nWP-CLI global config:\r\nWP-CLI project config:\r\nWP-CLI version:\t2.5.0\r\n\r\n**Provide a possible solution**\r\n\r\nThere could be a flag to explicitly bypass the WP-CLI Package Index.\r\n\r\n**Provide additional context**\r\n\r\nThis also happens in GitHub Actions.","author":{"url":"https://github.com/greatislander","@type":"Person","name":"greatislander"},"datePublished":"2021-06-30T17:03:37.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/141/package-command/issues/141"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:ed43e28b-f8a3-a0e7-5938-5d78cdb49091 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 85CE:D6FEA:9BF67F:D107C7:698F80E4 |
| html-safe-nonce | 779713a46afa4ab372b75f5bd2f969e15f3c4583d6a1e5795a2c03551a3f4efe |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUNFOkQ2RkVBOjlCRjY3RjpEMTA3Qzc6Njk4RjgwRTQiLCJ2aXNpdG9yX2lkIjoiNDU5NTM3MDEyNjYzNTY2MzU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | ced7402a88e59dc656727e34827ad563d330466b3d630aa3cf16f335c7df3320 |
| hovercard-subject-tag | issue:933917635 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/package-command/141/issue_layout |
| twitter:image | https://opengraph.githubassets.com/202a8a2edccda589d6ab5cb0410046265657d83ac9c464874e56c23cc470e27b/wp-cli/package-command/issues/141 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/202a8a2edccda589d6ab5cb0410046265657d83ac9c464874e56c23cc470e27b/wp-cli/package-command/issues/141 |
| og:image:alt | Bug Report Yes, I reviewed the contribution guidelines. Yes, more specifically, I reviewed the guidelines on how to write clear bug reports. Describe the current, buggy behavior I'm trying to insta... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | greatislander |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4763146d672e989a41c6c0bd715790c0c59341d9f855508c8a3196e1e480b8f7 |
| turbo-cache-control | no-preview |
| go-import | github.com/wp-cli/package-command git https://github.com/wp-cli/package-command.git |
| octolytics-dimension-user_id | 1570774 |
| octolytics-dimension-user_login | wp-cli |
| octolytics-dimension-repository_id | 84599440 |
| octolytics-dimension-repository_nwo | wp-cli/package-command |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84599440 |
| octolytics-dimension-repository_network_root_nwo | wp-cli/package-command |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8b442a4e0d8e68ffb351da689499018fde153e49 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width