diff options
Diffstat (limited to 'internal/rosa/go.go')
| -rw-r--r-- | internal/rosa/go.go | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/internal/rosa/go.go b/internal/rosa/go.go index 475eb086..6278dfb3 100644 --- a/internal/rosa/go.go +++ b/internal/rosa/go.go @@ -62,7 +62,7 @@ ln -s \ ))) } -func (t Toolchain) newGoLatest() pkg.Artifact { +func (t Toolchain) newGoLatest() (pkg.Artifact, string) { var ( bootstrapEnv []string bootstrapExtra []pkg.Artifact @@ -153,9 +153,13 @@ rm \ `, go123, ) + const ( + version = "1.26.0" + checksum = "uHLcrgBc0NMcyTMDLRNAZIcOx0RyQlyekSl9xbWSwj3esEFWJysYLfLa3S8p39Nh" + ) return t.newGo( - "1.26.0", - "uHLcrgBc0NMcyTMDLRNAZIcOx0RyQlyekSl9xbWSwj3esEFWJysYLfLa3S8p39Nh", + version, + checksum, finalEnv, ` sed -i \ 's,/lib/ld-musl-`+linuxArch()+`.so.1,/system/bin/linker,' \ @@ -164,6 +168,14 @@ sed -i \ rm \ os/root_unix_test.go `, go125, - ) + ), version +} +func init() { + artifactsM[Go] = Metadata{ + f: Toolchain.newGoLatest, + + Name: "go", + Description: "the Go programming language toolchain", + Website: "https://go.dev/", + } } -func init() { artifactsF[Go] = Toolchain.newGoLatest } |
