aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/package/go.az
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-09-04 02:12:07 +0900
committerOphestra <cat@gensokyo.uk>2026-09-04 02:12:07 +0900
commit8c8fb9cb0c389fc0525c7b9a4bcd42a425da77f0 (patch)
tree47e30a32a086df56de689910c001bdc96638f5ea /internal/rosa/package/go.az
parent724a0de946f87d1791a6037defe8c2cf879159e0 (diff)
internal/rosa/package/go: 1.27.0 to 1.27.1
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/go.az')
-rw-r--r--internal/rosa/package/go.az57
1 files changed, 57 insertions, 0 deletions
diff --git a/internal/rosa/package/go.az b/internal/rosa/package/go.az
new file mode 100644
index 00000000..6efca245
--- /dev/null
+++ b/internal/rosa/package/go.az
@@ -0,0 +1,57 @@
+package go {
+ description = "the Go programming language toolchain";
+ website = "https://go.dev";
+ anitya = 1227;
+
+ version# = "1.27.1";
+ source = remoteTar {
+ url = "https://go.dev/dl/go"+version+".src.tar.gz";
+ checksum = "Jw7OCTZbixLPF0E2WafFBh6DnxbsElvEg_RsMGkrzAmi0pyJTI3eQqLJsvXlVtbK";
+ compress = gzip;
+ };
+
+ env = [
+ "CC=cc",
+ "GOCACHE=/tmp/gocache",
+ "GOROOT_BOOTSTRAP=/system/go",
+ "TMPDIR=/dev/shm/go",
+ ];
+
+ enterSource = true;
+
+ exec = generic {
+ chdir = false;
+ build = `
+mkdir /work/system/ "${TMPDIR}"
+cp -r . /work/system/go
+cd /work/system/go/src/
+chmod -R +w ..
+
+sed -i \
+ 's,/lib/ld-musl-`+linuxArch+`.so.1,/system/bin/linker,' \
+ cmd/link/internal/`+arch+`/obj.go
+
+rm \
+ os/root_unix_test.go \
+ runtime/crash_cgo_test.go \
+ cmd/cgo/internal/testsanitizers/tsan_test.go \
+ cmd/cgo/internal/testsanitizers/cshared_test.go
+
+set +u
+. ./make.bash "$@" --no-banner
+set -u
+`;
+ check = "bash run.bash --no-rebuild\n";
+ install = `
+../bin/go tool dist banner # print build info
+
+mkdir /work/system/bin
+ln -s \
+ ../go/bin/go \
+ ../go/bin/gofmt \
+ /work/system/bin
+`;
+ };
+
+ inputs = [ bash, go-bootstrap ];
+}