-
Notifications
You must be signed in to change notification settings - Fork 875
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: make head pull failure warning toggleable #912
Conversation
Codecov Report
@@ Coverage Diff @@
## main #912 +/- ##
==========================================
- Coverage 45.29% 40.14% -5.16%
==========================================
Files 25 25
Lines 1402 1415 +13
==========================================
- Hits 635 568 -67
- Misses 701 785 +84
+ Partials 66 62 -4
Continue to review full report at Codecov.
|
d878b35
to
763b412
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs a go fmt
, there's some mixed indentations
b7b0784
to
3deb4c8
Compare
A suggestion for resolving #892.
This will add the command line argument
--warn-on-head-failure
, which can be set toalways
,auto
(default) andnever
.Where
auto
is the current behaviour, where registries that are known to work (and especially docker hub) will yield a warning when HEAD requests fail.Setting it to
never
disables the warning, andalways
warns regardless of whether the registry is known to support HEAD. The last one is mostly useful for testing is not expected to be used much for the average user.It also changes what the warnings contain. They now always include the image name and the reason for the HEAD failure.
The disabled warnings are still logged as
debug
, so you can still find them in your logs if you have--debug
enabled.