-
Notifications
You must be signed in to change notification settings - Fork 0
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
Issues building multi-OS / multi-arch platforms #14
Comments
This blocks https://github.com/weberc2/builder/milestone/1 because github.com/fatih/color depends on golang.org/x/sys which suffers this bug. |
Redditors pointed me to the |
This comment is a brain dump: After experimenting with using
The reason the Go team deprecated binary-only packages is because it is difficult to make sure that the same versions of dependencies are used throughout. If the lower-level command is used, the "protection" against the differing-versions-of-same-dependency issue is that users should only use one version of a dependency in their whole source tree. Users could abuse this by building dependency If we are going to lean on the Go toolchain to cache intermediate artifacts, perhaps we should lean on it to manage dependencies as well, such that we don't have go_library() targets at all, but only go_binary() targets that each manage their own dependencies (ideally via
|
When running
builder build 3rdParty/golang:sys-unix
, if I modify plugins/golang/compile.go to pass only .go files in the specified source directory, then I get this errorIf I also pass
.s
files, I get this:It doesn't appear that
go tool compile
respects GOOS/GOARCH, so we'll have to build that filtering functionality into the plugin or usego build
directly.The text was updated successfully, but these errors were encountered: