Skip to content

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

Open
@matteosilv

Description

@matteosilv

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions