lima-vm / lima-vm/lima

Compiling go code, inside host mounted folder prevent the binary file being executable

Open
#602 7 comments 1 reaction 0 assignees View on GitHub
bug component/sshfs
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.