You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
pkg/usrlocalsharelima: add a candidate directory to searching lima-guestagent
When debugging `cmd/limactl` with `dlv dap`, the executable appears as follows:
`cmd/limactl/__debug_bin2611107549`.
In this case, `limactl` fails to locate `lima-guestagent` relative to the expected executable path and results in the following error:
```json
{
"level": "fatal",
"msg": "failed to find \"lima-guestagent.Linux-aarch64\" binary for \"/Users/norio/ghq/github.com/lima-vm/lima/cmd/limactl/__debug_bin2611107549\", attempted [/Users/norio/ghq/github.com/lima-vm/lima/cmd/limactl/lima-guestagent.Linux-aarch64 /Users/norio/ghq/github.com/lima-vm/lima/cmd/share/lima/lima-guestagent.Linux-aarch64]",
"time": "2024-09-24T15:02:23+09:00"
}
```
To avoid this error, it was necessary to create a symbolic link (`ln -sf ../_output/share cmd/share`) so that `lima-guestagent*` exists at the expected relative path.
This change adds `_output/share/lima/lima-guestagent.*` to the search directories, making the symbolic link creation unnecessary before running `dlv dap` for debugging.
Signed-off-by: Norio Nomura <[email protected]>
0 commit comments