aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/go.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/rosa/go.go')
-rw-r--r--internal/rosa/go.go48
1 files changed, 7 insertions, 41 deletions
diff --git a/internal/rosa/go.go b/internal/rosa/go.go
index 71d552e2..866ee094 100644
--- a/internal/rosa/go.go
+++ b/internal/rosa/go.go
@@ -77,7 +77,8 @@ func init() {
finalEnv []string
)
- switch arch := t.Arch(); arch {
+ arch := t.Arch()
+ switch arch {
case "amd64":
bootstrapEarly = []pkg.Artifact{t.New("go", "1.4-bootstrap", newTar(
"https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz",
@@ -107,65 +108,30 @@ mkdir -p /var/tmp/
finalEnv = append(finalEnv, "CGO_ENABLED=0")
default:
- panic("unsupported target " + t.arch)
+ panic("unsupported target " + arch)
}
go119 := t.newGo(
"1.19.13",
"MpXfAzOlxdEW_XHmss2IpErg7rJiBsAD9WGgjNo26FXsIyc2gShcz0UJawhEj0IT",
- append(bootstrapEnv, "CGO_ENABLED=0"), `
-rm \
- crypto/tls/handshake_client_test.go \
- cmd/pprof/pprof_test.go \
- os/os_unix_test.go
-sed -i \
- 's/os\.Getenv("GCCGO")$/"nonexistent"/' \
- go/internal/gccgoimporter/importer_test.go
-echo \
- 'type syscallDescriptor = int' >> \
- os/rawconn_test.go
-`, bootstrapEarly...)
+ append(bootstrapEnv, "CGO_ENABLED=0"), "", bootstrapEarly...)
go121 := t.newGo(
"1.21.13",
"YtrDka402BOAEwywx03Vz4QlVwoBiguJHzG7PuythMCPHXS8CVMLvzmvgEbu4Tzu",
- []string{"CGO_ENABLED=0"}, `
-sed -i \
- 's,/lib/ld-musl-`+t.llvmArch()+`.so.1,`+Prefix+`/bin/linker,' \
- cmd/link/internal/`+t.arch+`/obj.go
-
-rm \
- crypto/tls/handshake_client_test.go \
- crypto/tls/handshake_server_test.go \
- os/os_unix_test.go
-echo \
- 'type syscallDescriptor = int' >> \
- os/rawconn_test.go
-`, go119,
+ []string{"CGO_ENABLED=0"}, "", go119,
)
go123 := t.newGo(
"1.23.12",
"wcI32bl1tkqbgcelGtGWPI4RtlEddd-PTd76Eb-k7nXA5LbE9yTNdIL9QSOOxMOs",
- []string{"CGO_ENABLED=0"}, `
-sed -i \
- 's,/lib/ld-musl-`+t.llvmArch()+`.so.1,`+Prefix+`/bin/linker,' \
- cmd/link/internal/`+t.arch+`/obj.go
-`, go121,
+ []string{"CGO_ENABLED=0"}, "", go121,
)
go125 := t.newGo(
version,
checksum,
- []string{"CGO_ENABLED=0"}, `
-sed -i \
- 's,/lib/ld-musl-`+t.llvmArch()+`.so.1,`+Prefix+`/bin/linker,' \
- cmd/link/internal/`+t.arch+`/obj.go
-
-rm \
- os/root_unix_test.go \
- net/smtp/smtp_test.go
-`, go123,
+ []string{"CGO_ENABLED=0"}, "", go123,
)
return &meta, go125