GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — vendor: github.com/containerd/console 8f6c4e4 by crazy-max · Pull Request #2238 · docker/buildx

Conversation

@crazy-max

@crazy-max crazy-max commented Feb 2, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

As discussed internally with @milas @laurazard @thaJeztah, the containerd/console terminal check was causing errors to get logged on Windows if the output was redirected (piping to another command with more).

> docker buildx build . | more
failed to get console mode for stdout: The handle is invalid.
failed to get console mode for stdout: The handle is invalid.
[+] Building 0.7s (2/3)                                          docker:default
 => [internal] load build definition from Dockerfile                       0.0s
 => => transferring dockerfile: 4.66kB                                     0.0s
 => resolve image config for docker.io/docker/dockerfile:1                 0.7s
 => [auth] docker/dockerfile:pull token for registry-1.docker.io           0.0s

Bump github.com/containerd/console to containerd/console@8f6c4e4 to include containerd/console#66 that fixes this issue.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@crazy-max crazy-max added area/windows area/cli labels Feb 2, 2024
@crazy-max

crazy-max commented Feb 2, 2024

Copy link
Copy Markdown
Member Author

We could test this with client-side integration tests on Windows related to #2206 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max crazy-max added the status/needs-follow-up label Feb 2, 2024
@crazy-max

This comment was marked as outdated.

Sign in to view
@crazy-max crazy-max mentioned this pull request Feb 5, 2024
vendor: github.com/containerd/console v1.0.4 moby/buildkit#4621
Merged
@crazy-max crazy-max added the needs-cherry-pick/v0.12 label Feb 5, 2024
@crazy-max
crazy-max force-pushed the fix-win-console branch from b057f28 to f23353a Compare February 5, 2024 10:27
@crazy-max
crazy-max requested review from milas, thaJeztah and tonistiigi February 5, 2024 10:31
@crazy-max
crazy-max marked this pull request as ready for review February 5, 2024 10:32
@thaJeztah

thaJeztah commented Feb 5, 2024

Copy link
Copy Markdown
Member

@crazy-max would github.com/moby/term still be an alternative for this, or is that complicated?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max

crazy-max commented Feb 5, 2024

Copy link
Copy Markdown
Member Author

@crazy-max would github.com/moby/term still be an alternative for this, or is that complicated?

No because BuildKit progress ui that buildx depends on also uses containerd/console so it still prints one failed to get console mode: https://github.com/moby/buildkit/blob/b09a9f1afef847b71aa01faf1b6ff9c019c75b1f/util/progress/progressui/display.go#L172

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@thaJeztah

thaJeztah commented Feb 5, 2024

Copy link
Copy Markdown
Member

Ah, gotcha, thx.

We really need to look at some of these. I have a feeling we have multiple packages / implementations do very similar things

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@crazy-max crazy-max changed the title fix 'failed to get console mode' errors on Windows vendor: github.com/containerd/console 8f6c4e4 Feb 5, 2024
thaJeztah
thaJeztah reviewed Feb 5, 2024
View reviewed changes
Comment thread go.mod Resolved

Uh oh!

There was an error while loading. Please reload this page.

thaJeztah
thaJeztah approved these changes Feb 5, 2024
View reviewed changes

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

LGTM

left a suggestion (adding a comment to provide context)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

crazy-max reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@crazy-max
vendor: github.com/containerd/console 8f6c4e4
6ffb77d
full diff: containerd/console@v1.0.3...8f6c4e4

Signed-off-by: CrazyMax <[email protected]>
@crazy-max
crazy-max force-pushed the fix-win-console branch from f23353a to 6ffb77d Compare February 5, 2024 11:16
@crazy-max
crazy-max merged commit 30ae5ce into docker:master Feb 5, 2024
@crazy-max
crazy-max deleted the fix-win-console branch February 5, 2024 12:10
@crazy-max crazy-max added this to the v0.12.2 milestone Feb 5, 2024
@crazy-max crazy-max mentioned this pull request Feb 5, 2024
[v0.12] cherry-picks for v0.12.2 #2233
Closed
@thaJeztah thaJeztah mentioned this pull request Feb 5, 2024
vendor: github.com/containerd/console v1.0.4 #2246
Merged
@crazy-max crazy-max removed the needs-cherry-pick/v0.12 label Feb 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@thaJeztah thaJeztah thaJeztah approved these changes
@tonistiigi tonistiigi Awaiting requested review from tonistiigi
@milas milas Awaiting requested review from milas

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

area/cli area/windows status/needs-follow-up

Projects

None yet

Milestone

v0.12.2

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@crazy-max @thaJeztah
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.