-
Notifications
You must be signed in to change notification settings - Fork 50
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
Have gengapic protoc plugin invoke samplegen #218
Conversation
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.
Initial comments. I know you're in the middle of merging, so I'll TAL after.
Merge conflicts solved! PTAL I noticed that github is not showing diffs in Let me know what you folks think. |
PTAL |
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.
The most important comment is about the chan error
reading.
PTAL |
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.
LGTM. Wait for @vchudnov-g 's review
Move most of
cmd/gen-go-sample
tointenal/gensample
, but leavemain.go
still incmd/gen-go-sample
. This makes sure that samplegen can continue to run as a standalone program, and gapic-gen and invoke samplegenAdd
--sample
,--gapic-config
and--sample-only
flag to docker entry point, and pass them along togensample
andgengapic
.--sample-only
is present, toggle offgengapic
andgapic_validator_out
, so that we can generate samples for APIs that are not yet properly annotated.gensample
will consume gapic config and sample config.