-
Notifications
You must be signed in to change notification settings - Fork 527
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
Implement better user agent support #837
Conversation
Codecov Report
@@ Coverage Diff @@
## master #837 +/- ##
==========================================
+ Coverage 74.50% 74.60% +0.09%
==========================================
Files 106 105 -1
Lines 4429 4406 -23
==========================================
- Hits 3300 3287 -13
+ Misses 638 633 -5
+ Partials 491 486 -5
Continue to review full report at Codecov.
|
Rebased onto #845 Changes from just this PR: https://github.com/google/go-containerregistry/pull/837/files/100d667650035d53e68bde780fef99e25b5da7f8..0877d987d3bc4be5f709db8e23a2c2c2b157ec14 |
This allows you to supply a customer user agent string that will be prepended before the go-containerregistry portion. This uses go module build info to determine the version of go-containerregistry that you have pulled in, which will be included in the user agent as "go-containerregistry/${VERSION}". If we cannot get the version, this is just "go-containerregistry".
Presumably, this won't break windows, and I don't want to wait in the queue for another hour 😬 |
Fixes #830