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

fix(internal/gapicgen): use correct region tags for gensnippets #4022

Merged
merged 3 commits into from Apr 29, 2021

Conversation

tbpg
Copy link
Contributor

@tbpg tbpg commented Apr 29, 2021

A side effect of this is that only methods that correspond to RPCs get
region tags.

I changed the error handling so any snippet issues are only warnings and
don't log.Fatal (cc @noahdietz).

I deleted and regenerated all of the snippets, which led to non-Method
snippets (e.g. NewClient-type functions) being deleted.

The first commit has the actual generator changes. The second commit is
the regeneration.

cc @amanda-tarafa.

A side effect of this is that only methods that correspond to RPCs get
region tags.

I changed the error handling so any snippet issues are only warnings and
don't log.Fatal.

I deleted and regenerated all of the snippets, which led to non-Method
snippets (e.g. NewClient) being deleted.
@tbpg tbpg requested review from codyoss and noahdietz April 29, 2021 14:08
@tbpg tbpg requested a review from a team as a code owner April 29, 2021 14:08
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 29, 2021
Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

LGTM

@tbpg tbpg added the automerge Merge the pull request once unit tests and other checks pass. label Apr 29, 2021
@gcf-merge-on-green gcf-merge-on-green bot merged commit 8ccd689 into master Apr 29, 2021
@gcf-merge-on-green gcf-merge-on-green bot deleted the gensnippets branch April 29, 2021 14:58
@gcf-merge-on-green gcf-merge-on-green bot removed the automerge Merge the pull request once unit tests and other checks pass. label Apr 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants