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: explicitly fail if tty requested but not available #1371

Merged
merged 1 commit into from
Oct 25, 2022

Conversation

jedevc
Copy link
Collaborator

@jedevc jedevc commented Oct 25, 2022

See #1288.

The NewPrinter function is mostly borrowed from buildkit. However, at some point, it seems that the implementations drifted.

This patch updates buildx to be more similar in behavior to it's buildkit counterpart, specifically, it will explicitly fail if a TTY output is requested using "--progress=tty", but the output is not available.

To gracefully fallback to plain progress in this scenario, "--progress=plain" is required.

The NewPrinter function is mostly borrowed from buildkit. However, at
some point, it seems that the implementations drifted.

This patch updates buildx to be more similar in behavior to it's
buildkit counterpart, specifically, it will explicitly fail if a TTY
output is requested using "--progress=tty", but the output is not
available.

To gracefully fallback to plain progress in this scenario,
"--progress=plain" is required.

Signed-off-by: Justin Chadwell <[email protected]>
@jedevc jedevc added the kind/bug Something isn't working label Oct 25, 2022
@tonistiigi tonistiigi merged commit eab3f70 into docker:master Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants