You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[Infra] Updated Install Packages Script For Backwards Compatibility
The install_apt_packages.sh script is no longer backward compatible with
older versions of Ubuntu due to the dependency on clang-format-18.
Added an if statement to check if the distribution can support
clang-format-18 and only installing it if it can.
Added this script to the CI build process so it can always be tested
within the CI to prevent future regression.
# Install and cleanup is done in one command to minimize the build cache size
12
12
RUN apt-get update -qq \
13
13
# Extract package names from install_apt_packages.sh
14
-
&& sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed 's/ \\//g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' \
14
+
&& sed '/sudo/d' install_apt_packages.sh | sed '/#/d' | sed '/if\s.*then$/d' | sed '/else$/d' | sed '/fi$/d' | sed '/echo\s/d' | sed 's/ \\//g' | sed '/^$/d' | sed '/^[[:space:]]*$/d' | sed 's/\s//g' \
0 commit comments