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

Implement better user agent support #837

Merged
merged 4 commits into from
Dec 1, 2020
Merged

Conversation

jonjohnsonjr
Copy link
Collaborator

Fixes #830

@codecov-io
Copy link

codecov-io commented Nov 20, 2020

Codecov Report

Merging #837 (95e9bbf) into master (0349253) will increase coverage by 0.09%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            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     
Impacted Files Coverage Δ
pkg/crane/options.go 60.00% <0.00%> (+7.05%) ⬆️
pkg/v1/remote/options.go 54.54% <0.00%> (-7.00%) ⬇️
pkg/v1/remote/transport/basic.go 100.00% <ø> (ø)
pkg/v1/remote/transport/useragent.go 52.63% <50.00%> (-47.37%) ⬇️
pkg/v1/remote/transport/bearer.go 74.10% <100.00%> (-1.73%) ⬇️
pkg/v1/remote/transport/transport.go 100.00% <100.00%> (ø)
pkg/v1/remote/image.go 79.16% <0.00%> (-0.29%) ⬇️
pkg/v1/types/types.go 100.00% <0.00%> (ø)
pkg/v1/partial/index.go
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0349253...e8ba15e. Read the comment docs.

@jonjohnsonjr
Copy link
Collaborator Author

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".
@jonjohnsonjr
Copy link
Collaborator Author

Presumably, this won't break windows, and I don't want to wait in the queue for another hour 😬

@jonjohnsonjr jonjohnsonjr merged commit 7c586d4 into google:master Dec 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Encourage consumers to set a user agent
3 participants