Skip to content

dap: fix the check to determine whether exec will succeed#3701

Open
jsternberg wants to merge 1 commit intodocker:masterfrom
jsternberg:dap-fix-can-invoke
Open

dap: fix the check to determine whether exec will succeed#3701
jsternberg wants to merge 1 commit intodocker:masterfrom
jsternberg:dap-fix-can-invoke

Conversation

@jsternberg
Copy link
Collaborator

This refines the check for determining whether exec will succeed to work
when an error occurs. This check previously relied on the Ref being
populated in the result context but this would only happen if we were
paused from a breakpoint or by stepping. An error would not fill in this
field.

The check is now refined to use the new gateway filesystem exec API so
we can create the container and then check even if we don't have a
returned gateway reference. The logic to determine which mount to check
has also been moved.

This refines the check for determining whether exec will succeed to work
when an error occurs. This check previously relied on the `Ref` being
populated in the result context but this would only happen if we were
paused from a breakpoint or by stepping. An error would not fill in this
field.

The check is now refined to use the new gateway filesystem exec API so
we can create the container and then check even if we don't have a
returned gateway reference. The logic to determine which mount to check
has also been moved.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg force-pushed the dap-fix-can-invoke branch from 57d9dc1 to 99f366e Compare March 6, 2026 19:53
@jsternberg jsternberg requested a review from tonistiigi March 6, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant