internal/rosa/go: respect check flag

These tests are also quite expensive, so optionally skip them.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-10 04:01:06 +09:00
parent c79a4fe7f8
commit 92c48d82e2

View File

@@ -34,6 +34,10 @@ func (t Toolchain) newGo(
script string, script string,
extra ...pkg.Artifact, extra ...pkg.Artifact,
) pkg.Artifact { ) pkg.Artifact {
name := "all"
if presetOpts&OptSkipCheck != 0 {
name = "make"
}
return t.New("go"+version, 0, t.AppendPresets(extra, return t.New("go"+version, 0, t.AppendPresets(extra,
Bash, Bash,
), nil, slices.Concat([]string{ ), nil, slices.Concat([]string{
@@ -47,7 +51,7 @@ cp -r /usr/src/go /work/system
cd /work/system/go/src cd /work/system/go/src
chmod -R +w .. chmod -R +w ..
`+script+` `+script+`
./all.bash ./`+name+`.bash
mkdir /work/system/bin mkdir /work/system/bin
ln -s \ ln -s \