Comments (3)
Thanks for the report, @Roy-Orbison !
We can definitely try to fix up the URL syntaxes you think are broken. I'm having a little bit of a hard time grokking your report, though. Which syntaxes would you like to see supported?
from package-command.
In this docs section, it states that adding a module is done like so, the last parameter looking like a typical Git URL:
wp package install [email protected]:wp-cli/dist-archive-command.git
These all failed:
https://github.com/wp-cli/search-replace-command.git
github:wp-cli/search-replace-command.git
(wheregithub:
is an SSH alias that sets the user and selects the SSH key)github:wp-cli/search-replace-command.git:dev-main
(trying to select correct branch)https://github.com/wp-cli/search-replace-command.git:dev-main
What worked was wp-cli/search-replace-command:dev-main
, which I gleaned from this issue comment where someone else had encountered the invalid default branch dev-master
.
You don't necessarily have to support those URL types, more that the docs didn't match the experience, so maybe something needs to be updated.
from package-command.
Thanks, @Roy-Orbison.
I think we should:
- Support additional URL patterns where doing so wouldn't cause a backcompat break.
- Document the URL patterns we don't support because they conflict with some existing pattern.
In honestly, what's most likely is that the additional URL patterns weren't considered when the feature was created.
Feel free to submit a pull request, if you'd like. Here is some guidance on our pull request best practices.
from package-command.
Related Issues (20)
- installing package on Intranet HOT 3
- Unable to install packages on Windows and PHP7.3.1 HOT 13
- Adopt and enforce new `WP_CLI_CS` standard HOT 2
- Allow install from a Git repository specific branch HOT 1
- check_git_package_name hardcode reference to GitHub HOT 2
- Commands Cookbook link goes to a 404 HOT 1
- Lock framework to stable version again before release
- Compatibility with Composer 2 HOT 7
- Legacy package index prevents installation of current release of a package HOT 2
- Allow composer ^2.0 HOT 6
- SSL certificate problem: certificate has expired HOT 9
- Declaration of WP_CLI\ComposerIO::isVerbose() and others not compatible with Composer\IO\NullIO::isVerbose(): bool HOT 2
- Restore 'Install a package with a dependency' test
- Support for Composer 2.5 HOT 8
- Add command to get information about single package HOT 4
- Move command over to new v2 structure
- Prefer packagist.org over Github
- Automatically rerun failed scenarios
- Broke composer commands when used with phpcodesniffer-composer-installer HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from package-command.