Skip to content

Commit e5d5149

Browse files
authored
Pass http proxy settings through to bazel runners (#3246)
Required in order for environments that cannot otherwise egress to run Xcode project generation without setting `--repo_env=HTTPS_PROXY=...` etc in a bazelrc. Signed-off-by: Aaron Sky <[email protected]>
1 parent cd450a8 commit e5d5149

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

xcodeproj/internal/templates/bazel_build.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,12 @@ readonly allowed_vars=(
6969
"BUILD_WORKSPACE_DIRECTORY"
7070
"DEVELOPER_DIR"
7171
"HOME"
72+
"HTTP_PROXY"
73+
"http_proxy"
74+
"HTTPS_PROXY"
75+
"https_proxy"
76+
"NO_PROXY"
77+
"no_proxy"
7278
"SSH_AUTH_SOCK"
7379
"TERM"
7480
"USER"

xcodeproj/internal/templates/runner.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,12 @@ fi
204204
readonly allowed_vars=(
205205
"BUILD_WORKSPACE_DIRECTORY"
206206
"HOME"
207+
"HTTP_PROXY"
208+
"http_proxy"
209+
"HTTPS_PROXY"
210+
"https_proxy"
211+
"NO_PROXY"
212+
"no_proxy"
207213
"SSH_AUTH_SOCK"
208214
"TERM"
209215
"USER"

0 commit comments

Comments
 (0)