Probably something obvious, I'm building on OSX trying to build a Linux binary, this same command works on another project but:
GOOS=darwin GOARCH=amd64 go build -v gitlab.com/project/project-data-convertor
returns without error
GOOS=linux GOARCH=amd64 go build -v gitlab.com/project/project-data-convertor
gitlab.com/project/project-data-convertor
# gitlab.com/project/project-data-convertor
./utils.go:253:50: undefined: beamLocation
./utils.go:278:36: undefined: beamLocation
./utils.go:278:50: undefined: beamLocations
./utils.go:278:50: too many errors