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

detect terminal is not a console.File to avoid a panic #10564

Merged
merged 1 commit into from May 15, 2023

Conversation

ndeloof
Copy link
Contributor

@ndeloof ndeloof commented May 14, 2023

What I did
check conversion to console.File is successful, otherwise fallback to plain text output

Related issue
see #10560

(not mandatory) A picture of a cute animal, if possible in relation to what you did

@ndeloof ndeloof requested review from a team, nicksieger, StefanScherer, ulyssessouza, glours, milas and laurazard and removed request for a team May 14, 2023 10:12
@codecov
Copy link

codecov bot commented May 14, 2023

Codecov Report

Patch coverage: 12.50% and project coverage change: -0.02 ⚠️

Comparison is base (77dc9b5) 59.59% compared to head (2fb4432) 59.58%.

Additional details and impacted files
@@            Coverage Diff             @@
##               v2   #10564      +/-   ##
==========================================
- Coverage   59.59%   59.58%   -0.02%     
==========================================
  Files         107      107              
  Lines        9341     9345       +4     
==========================================
+ Hits         5567     5568       +1     
- Misses       3199     3202       +3     
  Partials      575      575              
Impacted Files Coverage Δ
pkg/progress/writer.go 64.00% <12.50%> (-2.20%) ⬇️

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

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
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.

LGTM

@ndeloof ndeloof merged commit 18a112e into docker:v2 May 15, 2023
22 of 24 checks passed
@ndeloof ndeloof deleted the windows_terminal branch May 15, 2023 18:56
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.

None yet

2 participants