Skip to content

Commit

Permalink
make go binaries executable
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
stehessel committed Apr 21, 2022
1 parent 1a72c9e commit fbe8221
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -554,6 +554,8 @@ endif
cp bin/linux/upgrader image/bin/sensor-upgrader
cp bin/linux/admission-control image/bin/admission-control
cp bin/linux/collection image/bin/compliance
# Workaround to bug in lima: https://github.com/lima-vm/lima/issues/602
find image/bin -type f -exec chmod +x {} \;


.PHONY: copy-binaries-to-image-dir
Expand Down

0 comments on commit fbe8221

Please sign in to comment.