internal/rosa: stricter cure-script options
All checks were successful
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m35s
Test / Hakurei (push) Successful in 3m44s
Test / ShareFS (push) Successful in 3m54s
Test / Hpkg (push) Successful in 4m19s
Test / Sandbox (race detector) (push) Successful in 5m3s
Test / Hakurei (race detector) (push) Successful in 6m12s
Test / Flake checks (push) Successful in 3m27s
All checks were successful
Test / Create distribution (push) Successful in 59s
Test / Sandbox (push) Successful in 2m35s
Test / Hakurei (push) Successful in 3m44s
Test / ShareFS (push) Successful in 3m54s
Test / Hpkg (push) Successful in 4m19s
Test / Sandbox (race detector) (push) Successful in 5m3s
Test / Hakurei (race detector) (push) Successful in 6m12s
Test / Flake checks (push) Successful in 3m27s
This change also moves .cure-script out of /system/bin. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -218,7 +218,7 @@ func fixupEnviron(env, extras []string, paths ...string) []string {
|
|||||||
|
|
||||||
// absCureScript is the absolute pathname [Toolchain.New] places the fixed-up
|
// absCureScript is the absolute pathname [Toolchain.New] places the fixed-up
|
||||||
// build script under.
|
// build script under.
|
||||||
var absCureScript = AbsSystem.Append("bin", ".cure-script")
|
var absCureScript = AbsSystem.Append(".cure-script")
|
||||||
|
|
||||||
const (
|
const (
|
||||||
// TExclusive denotes an exclusive [pkg.Artifact].
|
// TExclusive denotes an exclusive [pkg.Artifact].
|
||||||
@@ -348,7 +348,7 @@ mkdir -vp /work/system/bin
|
|||||||
support...,
|
support...,
|
||||||
), pkg.Path(
|
), pkg.Path(
|
||||||
absCureScript, false,
|
absCureScript, false,
|
||||||
pkg.NewFile(".cure-script", []byte("set -e\n"+script)),
|
pkg.NewFile(".cure-script", []byte("set -eu -o pipefail\n"+script)),
|
||||||
)}, paths)...,
|
)}, paths)...,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user