Skip to content

Commit cbfc064

Browse files
committed
fixup! build: use sudo while running apt on linux
Signed-off-by: Darshan Sen <raisinten@gmail.com>
1 parent 01979c0 commit cbfc064

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

build/deps.mk

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,18 @@ EXECUTOR ?= $(OS)
44
.PHONY: install-deps
55
install-deps:
66
# this assumes the linux executor on CircleCI runs ubuntu/debian
7-
ifneq (,$(filter $(EXECUTOR),debian linux))
7+
ifneq (,$(filter $(EXECUTOR),debian))
88
apt-get update
99
apt-get install --no-install-recommends -y \
1010
build-essential ninja-build cmake \
1111
python3 python3-dev python3-setuptools
1212
endif
13+
ifneq (,$(filter $(EXECUTOR),linux))
14+
sudo apt-get update
15+
sudo apt-get install --no-install-recommends -y \
16+
build-essential ninja-build cmake \
17+
python3 python3-dev python3-setuptools
18+
endif
1319
ifeq ($(EXECUTOR), alpine)
1420
apk update
1521
apk add --no-cache \
@@ -18,4 +24,4 @@ ifeq ($(EXECUTOR), alpine)
1824
endif
1925
ifeq ($(EXECUTOR), macos)
2026
brew install cmake
21-
endif
27+
endif

0 commit comments

Comments
 (0)