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

progress: remove errant import #10614

Merged
merged 1 commit into from
May 24, 2023
Merged

progress: remove errant import #10614

merged 1 commit into from
May 24, 2023

Conversation

milas
Copy link
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 nicksieger, ndeloof, StefanScherer, ulyssessouza, glours and laurazard and removed request for a team May 24, 2023 13:48
pkg/progress/writer.go Outdated Show resolved Hide resolved
@thaJeztah
Copy link
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 <milas.bowman@docker.com>
@codecov
Copy link

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
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