-
Notifications
You must be signed in to change notification settings - Fork 158
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
internal/relui: cross-compile Go 1.21 with -distpack
In 1.21, make.bash has a new argument, -distpack, which builds the release archives reproducibly from any host architecture. See the related bug for more details. This converts relui to use -distpack to build everything. Mostly that's as simple as adding an alternate build mode for the source and binary archives. There are/were some wrinkles to work out: - We need to generate the timestamp at the top level of the workflow so that the source consistency check reuses that same timestamp. - Since we now get a zip out of the Windows build, we comically have to convert that back to a tarball to push it to a buildlet. Or at least I thought that was better than running unzip. - I haven't figured out what to do about the module files yet. I think I'd prefer to recreate them in relui -- this code is really not happy about getting multiple files back from a build step. - I didn't make a clear distinction between host and target builders in the BuildletStep. Maybe I should. But the distpack codepaths are so much smaller that it was easy to verify they didn't use the wrong config anywhere. For golang/go#58659. Change-Id: I4c4cf5b5450046a62d062d7c0bbfe94157ee9446 Reviewed-on: https://go-review.googlesource.com/c/build/+/478158 Run-TryBot: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> Auto-Submit: Heschi Kreinick <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Reviewed-by: Carlos Amedee <[email protected]>
- Loading branch information
Showing
6 changed files
with
276 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.