Skip to content

dap: improve file explorer source names#3631

Merged
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:dap-better-source-names
Feb 4, 2026
Merged

dap: improve file explorer source names#3631
tonistiigi merged 1 commit intodocker:masterfrom
jsternberg:dap-better-source-names

Conversation

@jsternberg
Copy link
Collaborator

Improves the naming for file explorer names when the input relates
directly to a source. This is most common when the input is the context
(which is just usually a simple source like local://context).

This should help in most circumstances in determining which input is
which.

Fixes #3368.

Improves the naming for file explorer names when the input relates
directly to a source. This is most common when the input is the context
(which is just usually a simple source like `local://context`).

This should help in most circumstances in determining which input is
which.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
// an exec operation.
if exec, ok := op.Op.(*pb.Op_Exec); ok {
for _, m := range exec.Exec.Mounts {
if m.Input >= 0 && m.Input == int64(index) {
Copy link
Member

Choose a reason for hiding this comment

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

Does this assume that root mount is always input 0? I don't think there is a guarantee for that. Better to check .Dest == "/"

Copy link
Member

Choose a reason for hiding this comment

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

Nvm, it is greater-equal

// an exec operation.
if exec, ok := op.Op.(*pb.Op_Exec); ok {
for _, m := range exec.Exec.Mounts {
if m.Input >= 0 && m.Input == int64(index) {
Copy link
Member

Choose a reason for hiding this comment

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

Nvm, it is greater-equal

@tonistiigi tonistiigi merged commit 06f438a into docker:master Feb 4, 2026
244 of 245 checks passed
@jsternberg jsternberg deleted the dap-better-source-names branch February 5, 2026 03:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include build context structure when debugging with DAP

2 participants