Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build-dev-docker.bash script fails on non-Linux when GOBIN is set #5071

Open
kenjenkins opened this issue Apr 15, 2024 · 1 comment
Open

Comments

@kenjenkins
Copy link
Contributor

          yes, errored out with 
go: cannot install cross-compiled binaries when GOBIN is set
make: *** [deps-release] Error 1

Originally posted by @joeattueyi in #5069 (comment)

@kenjenkins
Copy link
Contributor Author

For example, on macOS I can reproduce this error by running:

$ GOBIN=~/go/bin/tmp ./scripts/build-dev-docker.bash 
+ _dir=/tmp/pomerium-dev-docker
+ mkdir -p /tmp/pomerium-dev-docker
+ env GOOS=linux make build
==> yarn
cd ui ; yarn install --network-timeout 120000
yarn install v1.22.19
[1/4] 🔍  Resolving packages...
success Already up-to-date.
✨  Done in 0.08s.
==> build-ui
yarn run v1.22.19
$ ts-node ./scripts/esbuild.ts

  dist/index.js     3.3mb ⚠️
  dist/index.css  129.3kb

✨  Done in 2.03s.
==> get-envoy
==> deps-build
==> deps-release
go: cannot install cross-compiled binaries when GOBIN is set
make: *** [deps-release] Error 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant