Skip to content

Commit

Permalink
Merge pull request #110 from getsolus/sccache-root
Browse files Browse the repository at this point in the history
builder: Start sccache server as root
  • Loading branch information
ermo authored Sep 18, 2024
2 parents 7597402 + ddc5d61 commit 64236e7
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 64236e7

Please sign in to comment.