Skip to content

Commit c15c7b5

Browse files
authored
Prevent curl command from using config file or proxy (#2313)
1 parent d02475c commit c15c7b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

buildkite/bazelci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1656,7 +1656,7 @@ def download_bazelci_agent(dest_dir):
16561656
name = "bazelci-agent-{}-{}".format(version, postfix)
16571657
url = "https://github.com/{}/releases/download/agent-{}/{}".format(repo, version, name)
16581658
path = os.path.join(dest_dir, "bazelci-agent.exe" if is_windows() else "bazelci-agent")
1659-
execute_command(["curl", "-sSL", url, "-o", path])
1659+
execute_command(["curl", "-q", "--noproxy", "*", "-sSL", url, "-o", path])
16601660
st = os.stat(path)
16611661
os.chmod(path, st.st_mode | stat.S_IEXEC)
16621662
return path

0 commit comments

Comments
 (0)