Bug#1012822: clang-format-14: git-clang-format-14 still tries to use clang-format instead of clang-format-14

Marc dkm+debian at kataplop.net
Tue Jun 14 21:36:25 BST 2022


Package: clang-format-14
Version: 1:14.0.5-1
Severity: normal
X-Debbugs-Cc: dkm+debian at kataplop.net

Dear Maintainer,

When calling:

$ git clang-format-14 HEAD

if you only have 'clang-format-14' installed, this fails with:

 error: cannot find executable "clang-format"

This is because the git-clang-format-14 keeps the default of calling 'clang-format'.

Calling it using --binary clang-format-14 fixes the error.

Maybe changing the default for the clang-format-* versions would avoid issues. I had several versions installed in the past and always thought that calling 'git clang-format-N' would use the correct version.

I can provide you with a patch if you want.

Thanks,
Marc
-- System Information:
Debian Release: bookworm/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.17.0-trunk-amd64 (SMP w/12 CPU threads; PREEMPT)
Kernel taint flags: TAINT_CPU_OUT_OF_SPEC
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:en
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages clang-format-14 depends on:
ii  libc6           2.33-7
ii  libclang-cpp14  1:14.0.5-1
ii  libgcc-s1       12.1.0-2
ii  libllvm14       1:14.0.5-1
ii  libstdc++6      12.1.0-2
ii  python3         3.10.4-1+b1

clang-format-14 recommends no packages.

clang-format-14 suggests no packages.

-- no debconf information



More information about the Pkg-llvm-team mailing list