aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/go.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-01-25 23:59:08 +0900
committerOphestra <cat@gensokyo.uk>2026-01-25 23:59:08 +0900
commit8a86cf74ee164719534b9fd81741ff10a18e28d7 (patch)
tree0704ca7b900a62d2f1afc42dcd622159cf78cad4 /internal/rosa/go.go
parente34a59e33203503b7d734820ed91b760288a6d98 (diff)
internal/rosa/go: symlink executables
This avoids having to fix up $PATH for every artifact. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/go.go')
-rw-r--r--internal/rosa/go.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/internal/rosa/go.go b/internal/rosa/go.go
index 803c1bc8..69987101 100644
--- a/internal/rosa/go.go
+++ b/internal/rosa/go.go
@@ -64,6 +64,12 @@ cd /work/system/go/src
chmod -R +w ..
`+script+`
./all.bash
+
+mkdir /work/system/bin
+ln -s \
+ ../go/bin/go \
+ ../go/bin/gofmt \
+ /work/system/bin
`, pkg.Path(AbsUsrSrc.Append("go"), false, pkg.NewHTTPGetTar(
nil, "https://go.dev/dl/go"+version+".src.tar.gz",
mustDecode(checksum),