Skip to content

Commit f0d87ac

Browse files
committed
Use apt-get instead of apt
We currently get a warning in the logs, when we use `apt`: ``` WARNING: apt does not have a stable CLI interface. Use with caution in scripts. ``` From the apt man page: > ### SCRIPT USAGE AND DIFFERENCES FROM OTHER APT TOOLS > All features of apt(8) are available in dedicated APT tools like apt-get(8) and apt-cache(8) as well. apt(8) just changes the default value of some options (see apt.conf(5) and specifically the Binary scope). So you should prefer using these commands (potentially with some additional options enabled) in your scripts as they keep backward compatibility as much as possible. This pr exchanges uses of `apt` with `apt-get`
1 parent b681525 commit f0d87ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swift-ci/master/ubuntu/20.04/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ RUN groupadd -g 998 build-user && \
55

66
ENV DEBIAN_FRONTEND="noninteractive"
77

8-
RUN apt -y update && apt -y install \
8+
RUN apt-get -y update && apt-get -y install \
99
build-essential \
1010
clang \
1111
cmake \

0 commit comments

Comments
 (0)