From 92ea5e64b4e40ebacfad10f3b8b6475b7c056b1f Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Wed, 24 Sep 2025 09:28:38 -0500 Subject: [PATCH] dap: file explorer uses the wrong path when looking up mounts It accidentally retrieved the relative path to the mount directory instead of the full path which resulted in always returning the root directory. Signed-off-by: Jonathan A. Sternberg --- dap/variables.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dap/variables.go b/dap/variables.go index 25840f451..69959a307 100644 --- a/dap/variables.go +++ b/dap/variables.go @@ -447,7 +447,7 @@ func lookupPath(path string, mounts map[string]gateway.Reference) (remainder str for p, r := range mounts { if len(p) > len(prefix) && strings.HasPrefix(path, p) { prefix = p - remainder, _ = filepath.Rel(prefix, p) + remainder, _ = filepath.Rel(prefix, path) ref = r } }