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
Get clang-format-10 directly from Ubuntu, not LLVM
tools/ci/provision.sh runs tools/ci/get_llvm_clang-format.sh, which
was adding a llvm.org repository to sources.list: the list of
places Ubuntu will look to find packages to install. This resulted
in a conflict where Ubuntu's apt program refuses to install
clang-format-10 when the command to do so in tools/ci/provision.sh
is run.
Simply not adding the llvm.org repository to sources.list seems to
resolve the issue, allowing clang-format-10 to be installed
successfully on Ubuntu 18.04, at least.
According to https://apt.llvm.org/, the packages llvm.org provides
via its sources are "extremely similar to the one shipping in
Debian & Ubuntu." It seems one key reason we might install packages
directly from llvm.org sources is to get access to later versions
of llvm tools than Ubuntu provides in its own repositories.
However, Ubuntu 18.04, at least, provides clang-format-10 directly
via apt, so there may be no need to add llvm.org repositories to
sources.list.
0 commit comments