Skip to content
This repository was archived by the owner on Jun 4, 2022. It is now read-only.

Commit 122544f

Browse files
ahornbyfacebook-github-bot
authored andcommitted
apt-get update on github (#113)
Summary: Pull Request resolved: facebook/sapling#113 GitHub Actions was failing at apt-get stage, error message suggested adding an apt-get update as remedy. Added in this diff and it indeed works. The actions build fails later on missing mio::net module when building mysql async, but that's unrelated to this change. Reviewed By: farnz Differential Revision: D34368662 fbshipit-source-id: f0a00da3ee740ae4443a328616e792ea615c922c
1 parent ec388d6 commit 122544f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build/fbcode_builder/getdeps.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -988,9 +988,13 @@ def write_job_for_platform(self, platform, args): # noqa: C901
988988
build_opts.allow_system_packages
989989
and build_opts.host_type.get_package_manager()
990990
):
991+
sudo_arg = "sudo "
991992
allow_sys_arg = " --allow-system-packages"
993+
if build_opts.host_type.get_package_manager() == "deb":
994+
out.write(" - name: Update system package info\n")
995+
out.write(f" run: {sudo_arg}apt-get update\n")
996+
992997
out.write(" - name: Install system deps\n")
993-
sudo_arg = "sudo "
994998
if build_opts.is_darwin():
995999
# brew is installed as regular user
9961000
sudo_arg = ""

0 commit comments

Comments
 (0)