Skip to content

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

Merged
codyoss merged 5 commits intogoogleapis:mainfrom
codyoss:version-ref-gapics
Feb 23, 2022
Merged

feat(internal/gapicgen): change versionClient for gapics#5687
codyoss merged 5 commits intogoogleapis:mainfrom
codyoss:version-ref-gapics

Conversation

@codyoss
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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 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 February 23, 2022 22:50
@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

// resetUnknownVersion resets doc.go files that have only had their version
// changed to UNKNOWN by the generator.
func (g *GapicGenerator) resetUnknownVersion() error {
Copy link
Copy Markdown
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