diff --git a/build/fbcode_builder/getdeps.py b/build/fbcode_builder/getdeps.py index 5efd2ef..968d3a4 100755 --- a/build/fbcode_builder/getdeps.py +++ b/build/fbcode_builder/getdeps.py @@ -440,7 +440,13 @@ def run_project_cmd(self, args, loader, manifest): elif manager == "deb": packages = sorted(set(all_packages["deb"])) if packages: - cmd_args = ["sudo", "apt", "install", "-y"] + packages + cmd_args = [ + "sudo", + "--preserve-env=http_proxy", + "apt-get", + "install", + "-y", + ] + packages elif manager == "homebrew": packages = sorted(set(all_packages["homebrew"])) if packages: @@ -1155,7 +1161,7 @@ def write_job_for_platform(self, platform, args): # noqa: C901 build_opts.allow_system_packages and build_opts.host_type.get_package_manager() ): - sudo_arg = "sudo " + sudo_arg = "sudo --preserve-env=http_proxy " allow_sys_arg = " --allow-system-packages" if build_opts.host_type.get_package_manager() == "deb": out.write(" - name: Update system package info\n")