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

Clarify error message for missing plugin versions #3651

Closed
wants to merge 1 commit into from

Conversation

iainmcgin
Copy link

When using buf generate, provide specific error messages based on whether the
plugin is unknown, or if it is just the version that is unknown.

  1. For a valid plugin with non-existent version (e.g., v0.4.1 instead of v0.4.0):
    "unknown version v0.4.1 for plugin community/neoeinstein-prost. The latest
    version is v0.4.0. Check https://buf.build/community/neoeinstein-prost for
    other available versions"

  2. For a completely non-existent plugin (e.g., a typo like "proust" instead of "prost"):
    "unknown plugin community/neoeinstein-proust, check https://buf.build/plugins for
    the list of available plugins"

This provides more clarity to users about whether they need to fix a version
number or if they have a completely incorrect plugin reference.

Fixes #3650

🤖 Generated with Claude Code
Co-Authored-By: Claude [email protected]

When using buf generate, provide specific error messages based on whether the
plugin is unknown, or if it is just the version that is unknown.

1. For a valid plugin with non-existent version (e.g., v0.4.1 instead of v0.4.0):
   "unknown version v0.4.1 for plugin community/neoeinstein-prost. The latest
   version is v0.4.0. Check https://buf.build/community/neoeinstein-prost for
   other available versions"

2. For a completely non-existent plugin (e.g., a typo like "proust" instead of "prost"):
   "unknown plugin community/neoeinstein-proust, check https://buf.build/plugins for
   the list of available plugins"

This provides more clarity to users about whether they need to fix a version
number or if they have a completely incorrect plugin reference.

Fixes bufbuild#3650

🤖 Generated with [Claude Code](https://docs.anthropic.com/s/claude-code)
Co-Authored-By: Claude <[email protected]>
@CLAassistant
Copy link

CLAassistant commented Feb 25, 2025

CLA assistant check
All committers have signed the CLA.

@doriable doriable self-requested a review February 27, 2025 16:49
@doriable
Copy link
Member

Closing this, details/updates in the issue. Thank you!

@doriable doriable closed this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Clarify error message for missing plugin versions versus unknown plugins
3 participants