From 77b95b1f94de7cc6c1e28c0fdf2b4ecab93dd91a Mon Sep 17 00:00:00 2001 From: Dan Duvall Date: Thu, 15 Jun 2017 17:34:47 -0700 Subject: 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 --- build/instructions.go | 1 + 1 file changed, 1 insertion(+) (limited to 'build') 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 { -- cgit v1.2.1