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

Handle ctrl-c in the middle of GetAllAuthConfigs() #4603

Merged
merged 1 commit into from
Aug 31, 2020

Conversation

dgageot
Copy link
Contributor

@dgageot dgageot commented Jul 31, 2020

Signed-off-by: David Gageot [email protected]

@dgageot dgageot requested a review from a team as a code owner July 31, 2020 09:23
@codecov
Copy link

codecov bot commented Jul 31, 2020

Codecov Report

Merging #4603 into master will increase coverage by 0.00%.
The diff coverage is 83.33%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4603   +/-   ##
=======================================
  Coverage   73.38%   73.38%           
=======================================
  Files         345      345           
  Lines       13739    13750   +11     
=======================================
+ Hits        10082    10091    +9     
- Misses       3023     3025    +2     
  Partials      634      634           
Impacted Files Coverage Δ
pkg/skaffold/docker/image.go 73.77% <83.33%> (+0.41%) ⬆️

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 8d8379d...48a4471. Read the comment docs.

go func() {
// Like `docker build`, we ignore the errors
// See https://github.com/docker/cli/blob/75c1bb1f33d7cedbaf48404597d5bf9818199480/cli/command/image/build.go#L364
authConfigs, _ := DefaultAuthHelper.GetAllAuthConfigs()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we pass context into the function DefaultAuthHelper.GetAllAuthConfigs and handle it there?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll do that in another PR. The code is more complicated. But you are right that it makes more sense.

@dgageot dgageot merged commit 4accb21 into GoogleContainerTools:master Aug 31, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants