Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an `environment` field to `go_binary` so that Go binaries can users can at least attempt to build binaries in a non-local environment. Fixes pantsbuild#18115 Note: There is still [a bug with dependencies for the Go SDK](pantsbuild#18114) differing between the local and non-local environments due to condition compilation changing imports. (For example, the `runtime` package in the Go SDK only imports `runtime/internal/syscall` on Linux but not macOS.) This PR does not attempt to fix the bug, which will be fixed in a subsequent PR.
- Loading branch information