Skip to content

Commit

Permalink
getdeps: support GETDEPS_WGET_ARGS in wget version
Browse files Browse the repository at this point in the history
Summary:
X-link: facebook/proxygen#495

X-link: facebook/mvfst#337

X-link: facebook/fboss#194

X-link: facebookincubator/zstrong#748

I found it useful to be able to set `GETDEPS_WGET_ARGS` to change some of the flags to `wget` while it's in that fetch mode :)

Differential Revision: D56263907
  • Loading branch information
codyohl authored and facebook-github-bot committed Apr 17, 2024
1 parent 961fada commit 4a4d807
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions build/fbcode_builder/getdeps/fetcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -683,15 +683,18 @@ def progress_pycurl(self, total, amount, _uploadtotal, _uploadamount):
start = time.time()
try:
if os.environ.get("GETDEPS_USE_WGET") is not None:
subprocess.run(
procargs = (
[
"wget",
]
+ os.environ.get("GETDEPS_WGET_ARGS", "").split()
+ [
"-O",
file_name,
url,
]
)

subprocess.run(procargs, capture_output=True)
headers = None

elif os.environ.get("GETDEPS_USE_LIBCURL") is not None:
Expand Down

0 comments on commit 4a4d807

Please sign in to comment.