internal/rosa/cmake: chmod entire source tree
All checks were successful
Test / Create distribution (push) Successful in 53s
Test / Sandbox (push) Successful in 5m14s
Test / Hakurei (push) Successful in 7m52s
Test / ShareFS (push) Successful in 8m5s
Test / Hpkg (push) Successful in 43s
Test / Sandbox (race detector) (push) Successful in 2m23s
Test / Hakurei (race detector) (push) Successful in 3m24s
Test / Flake checks (push) Successful in 1m50s

This works around builds that traverse out of the appended pathname.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-21 07:26:36 +09:00
parent b6a66acfe4
commit 641942a4e3

View File

@@ -92,7 +92,7 @@ func (t Toolchain) NewViaCMake(
scriptEarly := attr.ScriptEarly
if attr.Writable {
scriptEarly = `
chmod -R +w "${ROSA_CMAKE_SOURCE}"
chmod -R +w "${ROSA_SOURCE}"
` + scriptEarly
}
@@ -106,6 +106,7 @@ chmod -R +w "${ROSA_CMAKE_SOURCE}"
attr.Extra,
cmakeExtras,
), nil, slices.Concat([]string{
"ROSA_SOURCE=" + sourcePath.String(),
"ROSA_CMAKE_SOURCE=" + sourcePath.Append(attr.Append...).String(),
"ROSA_INSTALL_PREFIX=/work" + prefix.String(),
}, attr.Env), scriptEarly+`