Skip to content

Support multiple generators#45

Merged
stevvooe merged 1 commit intocontainerd:mainfrom
kzys:generators
Oct 19, 2021
Merged

Support multiple generators#45
stevvooe merged 1 commit intocontainerd:mainfrom
kzys:generators

Conversation

@kzys
Copy link
Copy Markdown
Member

@kzys kzys commented Sep 23, 2021

The latest version of protoc-gen-go doesn't support gRPC. Supporting multiple generators is the way to support gRPC going forward.

@kzys kzys force-pushed the generators branch 5 times, most recently from d0ca12b to 764614f Compare September 23, 2021 17:20
@kzys kzys changed the title [WIP] Run protoc with multiple generators Support multiple generators Sep 23, 2021
@kzys kzys requested a review from stevvooe September 23, 2021 17:28
@kzys kzys marked this pull request as ready for review September 23, 2021 17:29
@kzys kzys requested a review from estesp September 23, 2021 17:30
Comment thread config.go

type config struct {
Version string
Generator string
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Would it be possible to keep compatibility with the previous syntax?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It may be. Let me check.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

The latest revision should support both Generator and Generators. The former is converted to the latter internally.

@kzys
Copy link
Copy Markdown
Member Author

kzys commented Oct 5, 2021

@AkihiroSuda @stevvooe Could you take a look?

Comment thread config.go Outdated
Plugins []string
Includes struct {

// Plugins will be deprecated. It has to be per-Generator setting, but neither protoc-gen-go nor protoc-gen-go-grpc
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The statement about plugin support is a bit hard to understand with the double negative. Is this saying both support plugins?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Oh. That was simply wrong. It has to be

but neither protoc-gen-go nor protoc-gen-go-grpc support plugins

The latest version of protoc-gen-go doesn't support gRPC. Supporting
multiple generators is the way to support gRPC going forward.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
Copy link
Copy Markdown
Member

@stevvooe stevvooe left a comment

Choose a reason for hiding this comment

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

LGTM

Is it time to start versioning the config?

@stevvooe stevvooe merged commit b7ebc4c into containerd:main Oct 19, 2021
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.

4 participants