diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-03-04 18:01:18 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-03-05 00:20:27 +0900 |
| commit | d2c6d486b06073aa88ee1912d3587f657cd57304 (patch) | |
| tree | 42e7df590ee8cda255e4cd35f9bd5ff7f9b2f94f /internal/rosa/go.go | |
| parent | 6fdd800b2b421b32e7db373b576433126c4652a2 (diff) | |
internal/rosa: provide package metadata
This had to be done out-of-band because there was no way to efficiently represent these within Artifact.
Signed-off-by: Ophestra <cat@gensokyo.uk>
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 } |
