Skip to content

Commit

Permalink
builder: Start sccache server as root
Browse files Browse the repository at this point in the history
Follow up to 8314405
  • Loading branch information
joebonrichie committed Sep 18, 2024
1 parent 7597402 commit ddc5d61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion builder/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ CLEANUP:
func StartSccache(dir string) {
var buf bytes.Buffer

c := exec.Command("chroot", dir, "/bin/su", BuildUser, "-c", "sccache --start-server")
c := exec.Command("chroot", dir, "/bin/su", "root", "-c", "sccache --start-server")
c.Stdout = &buf
c.Stderr = &buf
c.Env = slices.Clone(ChrootEnvironment)
Expand Down

0 comments on commit ddc5d61

Please sign in to comment.