aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-25 22:46:40 +0900
committerOphestra <cat@gensokyo.uk>2026-10-25 22:46:40 +0900
commitcb3b48456b6c21be3e966d1472130cf17c819300 (patch)
tree7b76e7999629f59df03e690b4e57a0154629c00b /internal
parentd53d6cd2665e67a71666f26fbedbe4f3b978789f (diff)
internal/rosa: disable invalid cross-compilation
There is no reason to cross-compile the bootstrap go toolchain, or the toolchain itself in general. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/rosa/go.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/internal/rosa/go.go b/internal/rosa/go.go
index 1127cf3d..fb588724 100644
--- a/internal/rosa/go.go
+++ b/internal/rosa/go.go
@@ -66,13 +66,18 @@ func init() {
Exclude: true,
}
builtin.MustRegister(meta.Name, func(t Toolchain) (*Metadata, pkg.Artifact) {
+ if t.cross() {
+ panic(CrossError("go-bootstrap"))
+ }
+
var (
bootstrapEnv []string
bootstrapEarly []pkg.Artifact
finalEnv []string
)
- switch t.arch {
+
+ switch arch := t.Arch(); arch {
case "amd64":
bootstrapEarly = []pkg.Artifact{t.New("go", "1.4-bootstrap", newTar(
"https://dl.google.com/go/go1.4-bootstrap-20171003.tar.gz",