summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorDan Duvall <dduvall@wikimedia.org>2017-06-15 17:34:47 -0700
committerDan Duvall <dduvall@wikimedia.org>2017-06-20 10:17:53 -0700
commit77b95b1f94de7cc6c1e28c0fdf2b4ecab93dd91a (patch)
treec136226a28999b65f85fd8c4257591478ca99d7f /build
parentbbb5eba26ae3edb671693c10d6d73a958546af27 (diff)
downloadblubber-77b95b1f94de7cc6c1e28c0fdf2b4ecab93dd91a.tar.gz
Set HOME environment variable for runs-as user
Summary: Fixes build issues around home permissions by setting `HOME` to the unprivileged user's home directory once the "privileges dropped" build phase has been reached. Test Plan: Run `go test ./...`. Reviewers: thcipriani, mobrovac, hashar, Jrbranaa, mmodell, #release-engineering-team Reviewed By: mobrovac Tags: #release-engineering-team Differential Revision: https://phabricator.wikimedia.org/D686
Diffstat (limited to 'build')
-rw-r--r--build/instructions.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/build/instructions.go b/build/instructions.go
index 2676a75..eda651c 100644
--- a/build/instructions.go
+++ b/build/instructions.go
@@ -5,6 +5,7 @@ type InstructionType int
const (
Run InstructionType = iota
Copy
+ Env
)
type Instruction struct {