Skip to content

Commit 608928d

Browse files
committed
pkg/usrlocal.LibexecLima: add delve path
Signed-off-by: Akihiro Suda <akihiro.suda.cz@hco.ntt.co.jp>
1 parent 74ca960 commit 608928d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

pkg/usrlocal/usrlocal.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,13 @@ func LibexecLima() ([]string, error) {
205205
candidates = append(candidates, candidate)
206206
}
207207
}
208+
if debugutil.Debug {
209+
if workspace := delveWorkspace(); workspace != "" {
210+
candidate := filepath.Join(workspace, "_output", "libexec", "lima")
211+
if ents, err := os.ReadDir(candidate); err == nil && len(ents) > 0 {
212+
candidates = append(candidates, candidate)
213+
}
214+
}
215+
}
208216
return candidates, nil
209217
}

0 commit comments

Comments
 (0)