From 53e9dd6aa933c1a5b43da83a88d5e07bf27285bf Mon Sep 17 00:00:00 2001 From: Ophestra Date: Wed, 28 Oct 2026 03:05:09 +0900 Subject: internal/rosa: do not hard code prefix This allows the prefix to be changed, at runtime if needed. Signed-off-by: Ophestra --- internal/rosa/package/go.az | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'internal/rosa/package/go.az') diff --git a/internal/rosa/package/go.az b/internal/rosa/package/go.az index 8b5abed4..4f284341 100644 --- a/internal/rosa/package/go.az +++ b/internal/rosa/package/go.az @@ -13,7 +13,7 @@ package go { env = [ "CC=cc", "GOCACHE=/tmp/gocache", - "GOROOT_BOOTSTRAP=/system/go", + "GOROOT_BOOTSTRAP="+prefix+"/go", "TMPDIR=/dev/shm/go", ]; @@ -22,13 +22,13 @@ package go { exec = generic { chdir = false; build = ` -mkdir /work/system/ "${TMPDIR}" -cp -r . /work/system/go -cd /work/system/go/src/ +mkdir /work`+prefix+`/ "${TMPDIR}" +cp -r . /work`+prefix+`/go +cd /work`+prefix+`/go/src/ chmod -R +w .. sed -i \ - 's,/lib/ld-musl-`+llvmArch+`.so.1,/system/bin/linker,' \ + 's,/lib/ld-musl-`+llvmArch+`.so.1,`+prefix+`/bin/linker,' \ cmd/link/internal/`+arch+`/obj.go rm \ @@ -45,11 +45,11 @@ set -u install = ` ../bin/go tool dist banner # print build info -mkdir /work/system/bin +mkdir /work`+prefix+`/bin ln -s \ ../go/bin/go \ ../go/bin/gofmt \ - /work/system/bin + /work`+prefix+`/bin `; }; -- cgit v1.3.1