Add --skip-update-check flag to wp package list #211
Merged
+38
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
wp package listcommand checks for updates by making network requests to package repositories, which can fail due to authentication issues with GitHub/Composer or rate limiting, and is slow when only local package information is needed.Changes
Added
--skip-update-checkflag towp package listcommandfind_latest_package()calls when flag is setupdatefield to "none" andupdate_versionto empty stringUpdated command documentation with flag description and usage example
Added Behat test verifying flag functionality
Usage
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
api.wordpress.org/usr/bin/curl curl -s REDACTED(dns block)downloads.wordpress.org/usr/bin/curl curl -sSfL REDACTED(dns block)gitlab.com/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install REDACTED(dns block)https://api.github.com/repos/https://gitlab.com/gitlab-examples/php.git/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install REDACTED(http block)https://api.github.com/repos/non-existent-git-user-asdfasdf/non-existent-git-repo-asdfasdf/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install REDACTED wp-cli/bin/wp pull.rebase rgo/bin/which(http block)https://api.github.com/repos/wp-cli-test/private-repository/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install REDACTED d asp_tags=Off' '-d short_open_tag=Off' '-d error_reporting=E_ALL' '-n' '-l' './src/WP_CLI/Packash main k/package-command/package-command/vendor/bin/sh(http block)wp-cli.org/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install wp-cli/restful tup_errors=0' '--n ame t[bot](dns block)/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install google-sitemap-generator-cli.zip it}(dns block)/usr/bin/php /usr/bin/php /home/REDACTED/work/package-command/package-command/vendor/wp-cli/wp-cli/bin/../php/boot-fs.php package install path-command(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.