Compiling go code, inside host mounted folder prevent the binary file being executable
- Dominant language
- Go
- Stars
- 21.9k
- Forks
- 957
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 53
Description
### Description
`limactl version 0.8.1`
After picking up a shell session on the lima vm or running from inside a docker container, building go binaries inside a mount:
`go build -o $MOUNTED_HOST_FOLDER ./cmd/server/main.go`
results in creating the main file not executable:
`-rw-r--r-- 1 lima dialout 35264925 Jan 27 15:00 main`
Same done to a vm folder:
`go build -o $HOME ./cmd/server/main.go`
results in:
`-rwxrwxr-x 1 lima lima 35264925 Jan 27 15:03 main`
This prevents us from switching from Docker Desktop to lima + docker seamlessly without modification to our workflows expecting the binary to be executable after compilation.
NOTE: chmod on the file works as intended, we have a workaround but requires us some modifications.
Contributor guide
Assessment
This issue has not been assessed yet.