setup
checks.aarch64-linux.clang-tidy
· build #635
· raw
1this derivation will be built:2 /nix/store/j408xgszc90q311aix5w9s4fs2r3jkb2-nix-grpc-store-clang-tidy-0.2.0.drv3error: Cannot build '/nix/store/j408xgszc90q311aix5w9s4fs2r3jkb2-nix-grpc-store-clang-tidy-0.2.0.drv'.4 Reason: builder failed with exit code 1.5 Output paths:6 /nix/store/prhmsw586s9i50vml5ldfjs0dss9k6fp-nix-grpc-store-clang-tidy-0.2.07 Last 25 log lines:8 > ../src/daemon/sandbox-linux.cc:151:22: error: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]9 > 151 | auto const res = ::syscall(number, args...);10 > | ^11 > ../src/daemon/sandbox-linux.cc:167:16: error: avoid repeating the return type from the declaration; use a braced initializer list instead [modernize-return-braced-init-list,-warnings-as-errors]12 > 167 | return nix::AutoCloseFD(static_cast<int>(ruleset));13 > | ^~~~~~~~~~~~~~~~~ ~14 > | { }15 > ../src/daemon/sandbox-linux.cc:224:30: error: parameter name 'fd' is too short, expected at least 3 characters [readability-identifier-length,-warnings-as-errors]16 > 224 | Ruleset(nix::AutoCloseFD fd, Fs handledFs)17 > | ^18 > ../src/daemon/sandbox-linux.cc:234:39: error: do not call c-style vararg functions [cppcoreguidelines-pro-type-vararg,-warnings-as-errors]19 > 234 | nix::AutoCloseFD const target(::open(path.c_str(), O_PATH | O_CLOEXEC));20 > | ^21 > >>> /nix/store/w7xl1p79akq4c6d2j6wpn7avfiiv2szw-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /build/source/build /build/source/src/daemon/main.cc22 > Errors encountered while running clang-tidy23 > ../src/daemon/main.cc:894:6: error: function 'sandboxPolicy' can be made static or moved into an anonymous namespace to enforce internal linkage [misc-use-internal-linkage,-warnings-as-errors]24 > 894 | auto sandboxPolicy(const nixgrpc::Options & options, bool listenFdsEmpty) -> nixgrpc::sandbox::Policy25 > | ^26 > | static27 > ../src/daemon/main.cc:914:76: error: 5 is a magic number; consider replacing it with a named constant [cppcoreguidelines-avoid-magic-numbers,readability-magic-numbers,-warnings-as-errors]28 > 914 | policy.listenSockets.push_back(CanonicalPath::from(addr.substr(5)));29 > | ^30 > FAILED: [code=1] meson-internal__clang-tidy31 > /nix/store/av7nrlz2yrbwwn4xmpdaz0swnqp36j1f-meson-1.12.1/bin/meson --internal clangtidy /build/source /build/source/build --color always32 > ninja: build stopped: subcommand failed.33 For full logs, run:34 nix log /nix/store/j408xgszc90q311aix5w9s4fs2r3jkb2-nix-grpc-store-clang-tidy-0.2.0.drv