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

feat(internal/gapicgen): change versionClient for gapics #5687

Merged
merged 5 commits into from
Feb 23, 2022

Conversation

codyoss
Copy link
Member

@codyoss codyoss commented Feb 23, 2022

With this commit we will add an init function that will set the
versionClient var to the module version. This will improve version
reporting for all calls.

With this commit we will add an init function that will set the
versionClient var to the module version. This will improve version
reporting for all calls.
@product-auto-label product-auto-label bot added the size: s Pull request size is small. label Feb 23, 2022
@codyoss
Copy link
Member Author

codyoss commented Feb 23, 2022

Please see first commit to see what one of the generated files looks liked, reverted with second commit.

codyoss added a commit to codyoss/gapic-generator-go that referenced this pull request Feb 23, 2022
This will allow us to override the value after the client has been
generated in an init function. For that code please see
googleapis/google-cloud-go#5687
@codyoss
Copy link
Member Author

codyoss commented Feb 23, 2022

This requires googleapis/gapic-generator-go#912 to be merged and released.

@codyoss codyoss marked this pull request as ready for review February 23, 2022 16:56
@codyoss codyoss requested a review from a team as a code owner February 23, 2022 16:56
@codyoss codyoss added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 23, 2022
codyoss added a commit to googleapis/gapic-generator-go that referenced this pull request Feb 23, 2022
This will allow us to override the value after the client has been
generated in an init function. For that code please see
googleapis/google-cloud-go#5687
@codyoss codyoss requested review from a team and tswast February 23, 2022 22:50
@product-auto-label product-auto-label bot added size: m Pull request size is medium. and removed size: s Pull request size is small. labels Feb 23, 2022
@codyoss codyoss removed the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Feb 23, 2022
@@ -254,39 +256,6 @@ go mod edit -dropreplace "google.golang.org/genproto"
return c.Run()
}

// resetUnknownVersion resets doc.go files that have only had their version
// changed to UNKNOWN by the generator.
func (g *GapicGenerator) resetUnknownVersion() error {
Copy link
Contributor

Choose a reason for hiding this comment

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

Good bye!!!!! 👍🏻 👍🏻 👍🏻

@codyoss codyoss merged commit 55f0d92 into googleapis:main Feb 23, 2022
@codyoss codyoss deleted the version-ref-gapics branch February 23, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants