Skip to content

Conversation

@tonistiigi
Copy link
Member

fix #2240

With recent changes, the global cobra context is passed to all commands what usually is correct, but in this case the prompt library does not provide support for cancellation.

Note that although the new function supports cancellation, it does not leave the reader in a clean state. Internally the prompt function uses bufio reader so it is unknown how many bytes it has read and how much data it has dropped once the prompt function returns.

@tonistiigi tonistiigi added this to the v0.13.0 milestone Feb 28, 2024
@tonistiigi tonistiigi merged commit e705caf into docker:master Feb 28, 2024
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.

docker buildx prune require 3x CTRL-C to cancel

2 participants