Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix handbook generation when Phar is used directly #476

Merged
merged 4 commits into from
Dec 8, 2023

Conversation

schlessera
Copy link
Member

In the case where the handbook generation is triggered via anything else than the wp-cli-dev environment, the script was broken and did not correctly recognize the $repo_url.

This change fixes this to make sure packages are correctly identified from within a vendor folder.

@schlessera schlessera requested a review from a team as a code owner December 8, 2023 09:12
@schlessera schlessera added this to the 2.10.0 milestone Dec 8, 2023
@schlessera schlessera merged commit 85b8fb8 into main Dec 8, 2023
@schlessera schlessera deleted the fix/update-handbook-script branch December 8, 2023 09:16
@@ -31,6 +32,7 @@ if ( 20 != substr( $md5_response->status_code, 0, 2 ) ) {
WP_CLI::error( "Couldn't access md5 hash for release (HTTP code {$response->status_code})" );
}
```
or in the body for POST requests.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@schlessera Where is this coming from? 🤔 Looks a bit out of place

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm, good catch. Looks like the parsing fails here.

image

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have created a new issue for this: #477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants