René's URL Explorer Experiment


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

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:ed43e28b-f8a3-a0e7-5938-5d78cdb49091
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id85CE:D6FEA:9BF67F:D107C7:698F80E4
html-safe-nonce779713a46afa4ab372b75f5bd2f969e15f3c4583d6a1e5795a2c03551a3f4efe
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NUNFOkQ2RkVBOjlCRjY3RjpEMTA3Qzc6Njk4RjgwRTQiLCJ2aXNpdG9yX2lkIjoiNDU5NTM3MDEyNjYzNTY2MzU4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacced7402a88e59dc656727e34827ad563d330466b3d630aa3cf16f335c7df3320
hovercard-subject-tagissue:933917635
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/wp-cli/package-command/141/issue_layout
twitter:imagehttps://opengraph.githubassets.com/202a8a2edccda589d6ab5cb0410046265657d83ac9c464874e56c23cc470e27b/wp-cli/package-command/issues/141
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/202a8a2edccda589d6ab5cb0410046265657d83ac9c464874e56c23cc470e27b/wp-cli/package-command/issues/141
og:image:altBug 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamegreatislander
hostnamegithub.com
expected-hostnamegithub.com
None4763146d672e989a41c6c0bd715790c0c59341d9f855508c8a3196e1e480b8f7
turbo-cache-controlno-preview
go-importgithub.com/wp-cli/package-command git https://github.com/wp-cli/package-command.git
octolytics-dimension-user_id1570774
octolytics-dimension-user_loginwp-cli
octolytics-dimension-repository_id84599440
octolytics-dimension-repository_nwowp-cli/package-command
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id84599440
octolytics-dimension-repository_network_root_nwowp-cli/package-command
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8b442a4e0d8e68ffb351da689499018fde153e49
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/wp-cli/package-command/issues/141#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fpackage-command%2Fissues%2F141
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fwp-cli%2Fpackage-command%2Fissues%2F141
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=wp-cli%2Fpackage-command
Reloadhttps://patch-diff.githubusercontent.com/wp-cli/package-command/issues/141
Reloadhttps://patch-diff.githubusercontent.com/wp-cli/package-command/issues/141
Reloadhttps://patch-diff.githubusercontent.com/wp-cli/package-command/issues/141
wp-cli https://patch-diff.githubusercontent.com/wp-cli
package-commandhttps://patch-diff.githubusercontent.com/wp-cli/package-command
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fwp-cli%2Fpackage-command
Fork 19 https://patch-diff.githubusercontent.com/login?return_to=%2Fwp-cli%2Fpackage-command
Star 18 https://patch-diff.githubusercontent.com/login?return_to=%2Fwp-cli%2Fpackage-command
Code https://patch-diff.githubusercontent.com/wp-cli/package-command
Issues 8 https://patch-diff.githubusercontent.com/wp-cli/package-command/issues
Pull requests 4 https://patch-diff.githubusercontent.com/wp-cli/package-command/pulls
Actions https://patch-diff.githubusercontent.com/wp-cli/package-command/actions
Models https://patch-diff.githubusercontent.com/wp-cli/package-command/models
Security 0 https://patch-diff.githubusercontent.com/wp-cli/package-command/security
Insights https://patch-diff.githubusercontent.com/wp-cli/package-command/pulse
Code https://patch-diff.githubusercontent.com/wp-cli/package-command
Issues https://patch-diff.githubusercontent.com/wp-cli/package-command/issues
Pull requests https://patch-diff.githubusercontent.com/wp-cli/package-command/pulls
Actions https://patch-diff.githubusercontent.com/wp-cli/package-command/actions
Models https://patch-diff.githubusercontent.com/wp-cli/package-command/models
Security https://patch-diff.githubusercontent.com/wp-cli/package-command/security
Insights https://patch-diff.githubusercontent.com/wp-cli/package-command/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/wp-cli/package-command/issues/141
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/wp-cli/package-command/issues/141
Legacy package index prevents installation of current release of a packagehttps://patch-diff.githubusercontent.com/wp-cli/package-command/issues/141#top
bughttps://github.com/wp-cli/package-command/issues?q=state%3Aopen%20label%3A%22bug%22
command:package-installRelated to 'package install' commandhttps://github.com/wp-cli/package-command/issues?q=state%3Aopen%20label%3A%22command%3Apackage-install%22
https://github.com/greatislander
https://github.com/greatislander
greatislanderhttps://github.com/greatislander
on Jun 30, 2021https://github.com/wp-cli/package-command/issues/141#issue-933917635
contribution guidelineshttps://make.wordpress.org/cli/handbook/contributing/
how to write clear bug reportshttps://make.wordpress.org/cli/handbook/bug-reports/
pressbooks/pb-clihttps://github.com/pressbooks/pb-cli
WP-CLI Package Indexhttps://wp-cli.org/package-index/
pressbooks/pb-cli@cc81de0https://github.com/pressbooks/pb-cli/commit/cc81de0ee946afad8abe291f4b59abb5237bf6ee
pressbooks/pb-cli@9fb35e6https://github.com/pressbooks/pb-cli/commit/9fb35e6129bbf51b53408671edce9bee5b75964d
bughttps://github.com/wp-cli/package-command/issues?q=state%3Aopen%20label%3A%22bug%22
command:package-installRelated to 'package install' commandhttps://github.com/wp-cli/package-command/issues?q=state%3Aopen%20label%3A%22command%3Apackage-install%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.