-
Notifications
You must be signed in to change notification settings - Fork 13
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
Support custom environment at the OSArch level #138
Comments
Thanks for filing this! The configuration looks reasonable to me. I think it would be most natural for the os-arch build to use any globally specified One possible concern I have is that I believe the Also, a few questions about the
Just want to make sure that the problem space is fully understood before we move forward on an implementation. |
Hey Nick, Thanks for the suggestions, agreed on your concerns re: the wide consumption of the OSArch struct. In response to your questions:
|
Thanks. So for point (2), that means that the Linux container image contains the |
Yeah that's correct. The linux image has cross-compilation toolchains for windows, linux and darwin |
Got it, that makes sense. Given all of this, I'm in sync with moving forward with the original proposal (as long as the environment information for |
We have a couple of cross-platform CGo projects that require custom
CC
andCXX
specified per os-arch combination.This is problematic because distgo currently only supports environment specification at the build level. Currently we're working around this by using multiple dist-plugin files and passing them to godel directly with the
--config
flag.This isn't great because then the manifest and metadata files in the dist aren't entirely accurate, and it's hacky in CI.
As a solution, I'm envisaging something like:
The text was updated successfully, but these errors were encountered: