Skip to content

progress: remove errant import#10614

Merged
milas merged 1 commit intodocker:v2from
milas:errant-import
May 24, 2023
Merged

progress: remove errant import#10614
milas merged 1 commit intodocker:v2from
milas:errant-import

Conversation

@milas
Copy link
Copy Markdown
Contributor

@milas milas commented May 24, 2023

What I did
Just write the warning to the passed in writer. The function being used was coming from cfssl's log package, which was presumably the result of auto-import being slightly too aggressive.

(Note: cfssl is still an indirect dependency after this.)

Related issue
n/a

(not mandatory) A picture of a cute animal, if possible in relation to what you did
cat in a husky outfit next to two huskies

@milas milas requested a review from a team May 24, 2023 13:48
@milas milas self-assigned this May 24, 2023
@milas milas requested review from StefanScherer, glours, laurazard, ndeloof, nicksieger and ulyssessouza and removed request for a team May 24, 2023 13:48
Comment thread pkg/progress/writer.go Outdated
@thaJeztah
Copy link
Copy Markdown
Member

cfssl is the worst; it had a TON of dependencies; I managed to get rid of a bunch of them, but don't think they did a new release still; https://github.com/cloudflare/cfssl/pulls?q=is%3Apr+author%3AthaJeztah

Write the warning using `logrus.Warn`. The function being used was
coming from `cfssl`'s log package, which was presumably the result
of auto-import being _slightly_ too aggressive.

(Note: `cfssl` is still an indirect dependency after this.)

Signed-off-by: Milas Bowman <[email protected]>
@codecov
Copy link
Copy Markdown

codecov Bot commented May 24, 2023

Codecov Report

Patch coverage has no change and project coverage change: +0.10 🎉

Comparison is base (68c462e) 59.45% compared to head (66ae0e5) 59.55%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10614      +/-   ##
==========================================
+ Coverage   59.45%   59.55%   +0.10%     
==========================================
  Files         107      107              
  Lines        9364     9437      +73     
==========================================
+ Hits         5567     5620      +53     
- Misses       3220     3241      +21     
+ Partials      577      576       -1     
Impacted Files Coverage Δ
pkg/progress/writer.go 64.00% <0.00%> (ø)

... and 6 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

Copy link
Copy Markdown
Contributor

@glours glours left a comment

Choose a reason for hiding this comment

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

👍

@milas milas merged commit b05a94f into docker:v2 May 24, 2023
@milas milas deleted the errant-import branch May 24, 2023 21:08
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.

4 participants