Skip to content

Commit fbe8221

Browse files
committed
make go binaries executable
Lima manages virtual machines on macOS, which can be used as a replacement to `Docker Desktop`. Currently, Lima contains a bug that leads to go binaries not being executable if they have been built inside a mounted volume (lima-vm/lima#602). As a workaround, add execution to the file permissions explicitly. This should be a no-op when Lima is not used, for example on Linux systems.
1 parent 1a72c9e commit fbe8221

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -554,6 +554,8 @@ endif
554554
cp bin/linux/upgrader image/bin/sensor-upgrader
555555
cp bin/linux/admission-control image/bin/admission-control
556556
cp bin/linux/collection image/bin/compliance
557+
# Workaround to bug in lima: https://github.com/lima-vm/lima/issues/602
558+
find image/bin -type f -exec chmod +x {} \;
557559

558560

559561
.PHONY: copy-binaries-to-image-dir

0 commit comments

Comments
 (0)