Skip to content

Commit

Permalink
make sure that clang-tools is in the same version across all platforms
Browse files Browse the repository at this point in the history
We noticed when upgrading nixpkgs in nix, that clang-format would
produce different results on macOS vs Linux.
This is not great behaviour especially in CI, because you cannot win.
This is because llvmPackage might be in a different version.
To solve this, we now always depend on the latest version.
  • Loading branch information
Mic92 committed Dec 9, 2024
1 parent d8c02f0 commit 8a8d2b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nix/tools.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
, callPackage
, cargo
, checkmake
, clang-tools
, llvmPackages_latest
, clippy
, cljfmt
, cmake-format
Expand Down Expand Up @@ -96,6 +96,7 @@ let
};
in
{
clang-tools = llvmPackages_latest.clang-tools;
inherit
actionlint
alejandra
Expand All @@ -106,7 +107,6 @@ in
cabal-fmt
cabal-gild
cargo
clang-tools
clippy
cljfmt
cmake-format
Expand Down

0 comments on commit 8a8d2b8

Please sign in to comment.