Implement buf registry sdk info
command
#3862
Merged
+358
−0
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.
This PR implements a new command,
buf registry sdk info
. This command isused for resolving SDK information. It always requires the user to provide the module
and plugin information.
This commands expands on
buf registry sdk version
, allowing the user to resolvethe SDK information based on the version string for the module and plugin. For example,
the user knows the SDK version string, they could provide the following to resolve the module
commit and plugin information for the SDK given version string:
If the user would like to resolve the SDK information for the latest commit on the default
label and latest version of the plugin:
If the user would like to resolve the SDK information for a specific module commit and/or plugin version:
If the SDK version and module commit and/or plugin version are provided, the SDK version string will be
resolved and validated against the provided module commit and/or plugin version. If there is a mismatch,
the command will error:
Fixes #3485