fix(sandbox): remove tar file after extraction to avoid healthcheck false positives
All checks were successful
build / build (pull_request) Successful in 1m41s
build / build (push) Successful in 1m43s
build / trigger-build-image (push) Has been skipped
build / trigger-build-image (pull_request) Has been skipped

This commit is contained in:
张泊明518370910136 2026-07-23 05:00:28 -07:00
parent 81cc320082
commit 156b2fafbc
GPG Key ID: D47306D7062CDA9D

View File

@ -102,8 +102,8 @@ func (e *Sandbox) runWithTar(cmds []stage.Cmd, tarData []byte) ([]stage.Executor
tarFileName := "/w/__joj3_copyin.tar"
script := fmt.Sprintf(
"/bin/tar xf %s -C / --no-same-owner && exec \"$@\"",
tarFileName,
"/bin/tar xf %s -C / --no-same-owner && rm %s && exec \"$@\"",
tarFileName, tarFileName,
)
cmds[0].CopyIn[tarFileName] = stage.CmdFile{FileID: &fid}