`make build` forces GOOS=linux
gabegorelick opened this issue · comments
Github issue
Issue type
Bug Report
Build number
master
Summary
The docs mention that make build
makes an artifact suitable for running locally, but this is only true if you're on Linux. make build
sets GOOS=linux
, which is correct if you want to run the executable on Lambda, but not if you want to run it locally on a non-Linux platform.
Steps to reproduce
- Run
make build
on a platform other than Linux. - Run
./AutoSpotting
Expected results
./AutoSpotting
runs without errors
Actual results
exec format error: ./AutoSpotting
since the executable is not compatible with the current architecture.