I run the following command in GH Actions:
wp dist-archive my-fancy-plugin $zip_name
It's been running without error for quite some time, but as of yesterday, I get this error:
PHP Warning: Undefined array key "plugin-dirname" in /home/runner/.wp-cli/packages/vendor/wp-cli/dist-archive-command/src/Dist_Archive_Command.php on line 164
Describe how other contributors can replicate this bug
This is the chain of commands I'm running:
Bug Report
Describe the current, buggy behavior
I run the following command in GH Actions:
wp dist-archive my-fancy-plugin $zip_name
It's been running without error for quite some time, but as of yesterday, I get this error:
Describe how other contributors can replicate this bug This is the chain of commands I'm running:
The runner apparently installs
dev-main
(f5b532c
) by default. Here's the stack trace:If I instead install the following, the zip archive is created with no issues:
wp package install wp-cli/dist-archive-command:@stable
Describe what you would expect as the correct outcome
The zip archive should be created with no errors.
Let us know what environment you are running this on
Unsure how to easily get this on GH Actions, but here's the runner environment: