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
go: Refactor to generic builder #35381
Conversation
Success on x86_64-linux (full log) Partial log (click to expand)
|
Success on aarch64-linux (full log) Partial log (click to expand)
|
Success on x86_64-darwin (full log) Partial log (click to expand)
|
Mhm. I am not sure if those generic approaches are very useful when building different versions of compilers. It is not very common, that you change something in a compiler expression after it has been added to nixpkgs. Sometimes abstraction is cool if you can change something in a central place, but it can be also make things harder to read. Or like the Rob Pike say: A little copying is better then a little dependency quote |
Also the last release did not change a lot, that might change again in future releases. |
I agree with your concerns @Mic92 and I'm a sucker for Go proverbs, but I feel like the good outweighs the bad here. It expresses to readers that Go 1.9 and 1.10 are built in largely the same way. If Go 1.11 requires a significantly different build process, then I don't think that will be a problem. At that point, we'll have removed 1.9 anyway (hopefully) and so this code will end up back in the Go 1.10 expression instead of as a generic expression. If we end up having to maintain 1.9, 1.10, and 1.11 this might get unwieldy, but we can revisit this at that time. |
Go 1.10 expression may diverge more from Go 1.9 expression when |
I want to revisit this. When #68101 is merged we'll have 4 versions of Go in nixpkgs that only differ slightly. |
Motivation for this change
The go versions build process is more similar than different.
I'm not sure why this causes darwin rebuilds currently.
Things done
build-use-sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)cc @cstrahan @orivej @velovix @Mic92