Skip to content

dap: look for base name of dockerfile name instead of path from context - #3371

Merged
tonistiigi merged 1 commit into
docker:masterfrom
jsternberg:dap-nested-dockerfile-path
Aug 16, 2025
Merged

tonistiigi merged 1 commit into
docker:masterfrom
jsternberg:dap-nested-dockerfile-path

Conversation

@jsternberg

Copy link
Copy Markdown
Collaborator

When the builder loads a dockerfile, it does it by using the base name
of the dockerfile path and only loads the innermost directory. This
means that the source name we're looking for is the base name and not
the full relative path.

Update the set breakpoints functionality so it takes this into account.
Fixes scenarios where DAP is used with a dockerfile nested in the
context.

When the builder loads a dockerfile, it does it by using the base name
of the dockerfile path and only loads the innermost directory. This
means that the source name we're looking for is the base name and not
the full relative path.

Update the set breakpoints functionality so it takes this into account.
Fixes scenarios where DAP is used with a dockerfile nested in the
context.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@jsternberg jsternberg added this to the v0.27.0 milestone Aug 15, 2025
@tonistiigi
tonistiigi merged commit 8033908 into docker:master Aug 16, 2025
@jsternberg
jsternberg deleted the dap-nested-dockerfile-path branch August 18, 2025 13:33
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.

2 participants