Skip to content

fix: grab version from the package metadata#806

Merged
chingor13 merged 3 commits intomasterfrom
chingor13-patch-1
Sep 4, 2019
Merged

fix: grab version from the package metadata#806
chingor13 merged 3 commits intomasterfrom
chingor13-patch-1

Conversation

@chingor13
Copy link
Copy Markdown
Contributor

@chingor13 chingor13 commented Aug 30, 2019

Fixes #796

This PR allows the HttpClient to inspect its own version at start time. If it's running from a package, it can fetch the version from the package manifest's implementation version. If it's not, it can read it from a properties file created at compile time to read the version.

Note that this is similar to how gax inspects its own version for the x-goog-api-client header

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Aug 30, 2019
@chingor13 chingor13 added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 30, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 30, 2019
@chingor13 chingor13 marked this pull request as ready for review August 30, 2019 22:27
@chingor13 chingor13 requested a review from a team August 30, 2019 22:27
@chingor13 chingor13 merged commit d82718d into master Sep 4, 2019
@chingor13 chingor13 deleted the chingor13-patch-1 branch September 4, 2019 19:45
clundin25 pushed a commit to clundin25/google-http-java-client that referenced this pull request Aug 11, 2022
…-sdk to v2 (googleapis#806)

Co-authored-by: Emily Ball <emilyball@google.com>
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.

1.31.0 reports wrong version in User-Agent

4 participants