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

Handle unparseable tags gracefully #5894

Merged
merged 1 commit into from Feb 5, 2024

Conversation

schlessera
Copy link
Member

Fixes wp-cli/extension-command#274

This PR adds a try/catch clause around the SemVer parsing to ensure we can handle unparseable tags gracefully.

It also adds some unit tests to verify this behavior, as well as to assert that standard stability suffixes like beta are properly recognized and treated.

@schlessera schlessera force-pushed the fix/274-unparseable-version-tags branch from d36accf to a5d2e2c Compare February 5, 2024 19:42
@schlessera schlessera merged commit 93f5880 into main Feb 5, 2024
65 checks passed
@schlessera schlessera deleted the fix/274-unparseable-version-tags branch February 5, 2024 19:53
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.

wp plugin update fails badly on unparsable tags
2 participants