Reproduction
mkdir -p ~/tmp/boundary
cd ~/tmp/boundary
curl -L -o boundary.zip https://github.com/devops-rob/vault-plugin-boundary-secrets-engine/releases/download/v1.0.2/vault-plugin-boundary-secrets-engine_v1.0.2_darwin_arm64.zip
unzip boundary.zip -d .
./vault-plugin-boundary-secrets-engine_v1.0.2
zsh: exec format error: ./vault-plugin-boundary-secrets-engine_v1.0.2
I suspect this is caused by a small error in the Makefile:
zip:
...
zip -j ./bin/vault-plugin-$(name)-$(plugin_type)_v$(version)_darwin_arm64.zip ./bin/linux_arm64/vault-plugin-$(name)-$(plugin_type)_v$(version)
zip -j ./bin/vault-plugin-$(name)-$(plugin_type)_v$(version)_darwin_amd64.zip ./bin/linux_arm64/vault-plugin-$(name)-$(plugin_type)_v$(version)
...
Note the source folder ./bin/linux_arm64 used to produce both darwin zips.
Reproduction
I suspect this is caused by a small error in the
Makefile:Note the source folder
./bin/linux_arm64used to produce both darwin zips.