-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add initial specification for plugin support #126
base: main
Are you sure you want to change the base?
Conversation
The latest Buf updates on your PR.
|
option go_package = "buf.build/gen/go/bufbuild/registry/protocolbuffers/go/buf/registry/plugin/v1"; | ||
|
||
// Operate on Plugins. | ||
service PluginService { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if we're planning to bring in the ResolveService, but it'd be nice if we stubbed out a single RPC to resolve Generated SDK version. Something like
rpc ResolveGeneratedSDKVersion
rpc ResolveSDKVersion
Basically folding all the Get{Go,Swift,Maven,NPM,...}Version
into a single RPC. You could argue that this fits nicely with the "PluginService".
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ideally there's also an RPC to get a registry-specific package ID. Could be the same RPC.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Drive by
google.protobuf.Timestamp update_time = 3 [(buf.validate.field).required = true]; | ||
// The name of the Plugin. | ||
// | ||
// Unique within a given User or Organization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this imply that each version/revision of the plugin has a different name?
// Semver-formatted release version of the Plugin. | ||
string version = 3; | ||
// The revision of the Plugin. This represents the BSR image version of the Plugin. | ||
uint32 revision = 4; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should these be under Name
? Why would I want to specify these if I have the plugin ID?
Partially superseded by #132. TBD on code generation plugins, but this is the first milestone towards Check plugins. |
This PR is a work in progress, open questions need to be addressed before full review.