this derivation will be built: /nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv building '/nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv' on 'ssh-ng://customer@mac02' building '/nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv' nix-grpc-store-clang-tidy-0.1.0> Running phase: unpackPhase nix-grpc-store-clang-tidy-0.1.0> unpacking source archive /nix/store/nbwclyvpgrkmw42l3kg495b4mip5y5sj-source nix-grpc-store-clang-tidy-0.1.0> source root is source nix-grpc-store-clang-tidy-0.1.0> Running phase: patchPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: updateAutotoolsGnuConfigScriptsPhase nix-grpc-store-clang-tidy-0.1.0> Running phase: configurePhase nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase flags: --prefix=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0 --libdir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/lib --libexecdir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/libexec --bindir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/bin --sbindir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/sbin --includedir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/include --mandir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/man --infodir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/info --localedir=/nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/locale -Dauto_features=enabled -Dwrap_mode=nodownload --buildtype=plain nix-grpc-store-clang-tidy-0.1.0> The Meson build system nix-grpc-store-clang-tidy-0.1.0> Version: 1.10.2 nix-grpc-store-clang-tidy-0.1.0> Source dir: /nix/var/nix/builds/nix-50194-160511831/source nix-grpc-store-clang-tidy-0.1.0> Build dir: /nix/var/nix/builds/nix-50194-160511831/source/build nix-grpc-store-clang-tidy-0.1.0> Build type: native build nix-grpc-store-clang-tidy-0.1.0> WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead nix-grpc-store-clang-tidy-0.1.0> Project name: nix-grpc-store nix-grpc-store-clang-tidy-0.1.0> Project version: 0.1.0 nix-grpc-store-clang-tidy-0.1.0> C++ compiler for the host machine: clang++ (clang 21.1.8 "clang version 21.1.8") nix-grpc-store-clang-tidy-0.1.0> C++ linker for the host machine: clang++ ld64 956.6 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu family: aarch64 nix-grpc-store-clang-tidy-0.1.0> Host machine cpu: aarch64 nix-grpc-store-clang-tidy-0.1.0> Found pkg-config: YES (/nix/store/lqahvywm9fgdhi7lwz4y56dkamsg7z0s-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency grpc++ found: YES 1.83.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency protobuf found: YES 35.1.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libzstd found: YES 1.5.7 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency threads found: YES nix-grpc-store-clang-tidy-0.1.0> Run-time dependency libcrypto found: YES 3.6.3 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-core found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency prometheus-cpp-pull found: YES 1.3.0 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-store found: YES 2.36.0pre20260831_b983ba81 nix-grpc-store-clang-tidy-0.1.0> Run-time dependency nix-util found: YES 2.36.0pre20260831_b983ba81 nix-grpc-store-clang-tidy-0.1.0> Program protoc found: YES (/nix/store/v7ijrik242ylbl098071amfs9wzks07i-protobuf-35.1/bin/protoc) nix-grpc-store-clang-tidy-0.1.0> Program grpc_cpp_plugin found: YES (/nix/store/1yhx18kvaf265sfyf6vbzggdvya4q3i5-grpc-1.83.0/bin/grpc_cpp_plugin) nix-grpc-store-clang-tidy-0.1.0> Run-time dependency dl found: YES nix-grpc-store-clang-tidy-0.1.0> Build targets in project: 4 nix-grpc-store-clang-tidy-0.1.0> WARNING: Project specifies no minimum version but uses features which were added in versions: nix-grpc-store-clang-tidy-0.1.0> * 1.1: {'meson.options file'} nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store 0.1.0 nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> User defined options nix-grpc-store-clang-tidy-0.1.0> auto_features: enabled nix-grpc-store-clang-tidy-0.1.0> bindir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/bin nix-grpc-store-clang-tidy-0.1.0> buildtype : plain nix-grpc-store-clang-tidy-0.1.0> includedir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/include nix-grpc-store-clang-tidy-0.1.0> infodir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/info nix-grpc-store-clang-tidy-0.1.0> libdir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/lib nix-grpc-store-clang-tidy-0.1.0> libexecdir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/libexec nix-grpc-store-clang-tidy-0.1.0> localedir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/locale nix-grpc-store-clang-tidy-0.1.0> mandir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/man nix-grpc-store-clang-tidy-0.1.0> prefix : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0 nix-grpc-store-clang-tidy-0.1.0> sbindir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/sbin nix-grpc-store-clang-tidy-0.1.0> wrap_mode : nodownload nix-grpc-store-clang-tidy-0.1.0> nix-grpc-store-clang-tidy-0.1.0> Found ninja-1.13.2 at /nix/store/gan2c2gpw4w1yi2r5asx6a087fa2a759-ninja-1.13.2/bin/ninja nix-grpc-store-clang-tidy-0.1.0> mesonConfigurePhase: enabled\ parallel\ building nix-grpc-store-clang-tidy-0.1.0> Running phase: buildPhase nix-grpc-store-clang-tidy-0.1.0> [1/1] Generating nix_remote_proto with a custom command nix-grpc-store-clang-tidy-0.1.0> [0/1] /nix/store/by8lz2aj6nw13mm1mv08vr1gqlmz0ih5-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-50194-160511831/source /nix/var/nix/builds/nix-50194-160511831/source/build --color always nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/fb8ffdcrnbxq6h7khli0k8pf4vk4ds66-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-50194-160511831/source/build /nix/var/nix/builds/nix-50194-160511831/source/src/plugin-loader.cc nix-grpc-store-clang-tidy-0.1.0> Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/plugin-loader.cc. nix-grpc-store-clang-tidy-0.1.0> ../version:1:1: error: expected unqualified-id [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> 1 | 0.1.0 nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/fb8ffdcrnbxq6h7khli0k8pf4vk4ds66-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-50194-160511831/source/build /nix/var/nix/builds/nix-50194-160511831/source/src/nix-grpc-daemon.cc nix-grpc-store-clang-tidy-0.1.0> Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/nix-grpc-daemon.cc. nix-grpc-store-clang-tidy-0.1.0> error: too many errors emitted, stopping now [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> ../src/acl.hh:51:7: error: constructor does not initialize these fields: rules [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 51 | class Acl nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> 52 | { nix-grpc-store-clang-tidy-0.1.0> 53 | struct Rule nix-grpc-store-clang-tidy-0.1.0> 54 | { nix-grpc-store-clang-tidy-0.1.0> 55 | std::string pattern; nix-grpc-store-clang-tidy-0.1.0> 56 | Role role; nix-grpc-store-clang-tidy-0.1.0> 57 | }; nix-grpc-store-clang-tidy-0.1.0> 58 | nix-grpc-store-clang-tidy-0.1.0> 59 | std::vector rules; nix-grpc-store-clang-tidy-0.1.0> | nix-grpc-store-clang-tidy-0.1.0> | {} nix-grpc-store-clang-tidy-0.1.0> ../src/acl.hh:70:10: error: method 'addRule' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 70 | void addRule(std::string_view spec) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/acl.hh:95:24: error: method 'roleFor' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 95 | [[nodiscard]] auto roleFor(const std::optional & commonName) const -> std::optional nix-grpc-store-clang-tidy-0.1.0> | ^ ~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/logfmt.hh:61:23: error: the value returned by this function should not be disregarded; neglecting it may lead to errors [cert-err33-c,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 61 | static_cast(std::strftime(timestamp.data(), timestamp.size(), "%Y-%m-%dT%H:%M:%SZ", &utc)); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/logfmt.hh:61:23: note: cast the expression to void to silence this warning nix-grpc-store-clang-tidy-0.1.0> ../src/metrics.hh:37:5: error: constructor does not initialize these fields: exposer [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 17 | explicit Metrics(const std::string & listen) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/metrics.hh:50:59: error: 2 adjacent parameters of 'countTunnelBytes' of similar type ('uint64_t') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/metrics.hh:50:68: note: the first parameter in the range is 'bytesIn' nix-grpc-store-clang-tidy-0.1.0> 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/metrics.hh:50:86: note: the last parameter in the range is 'bytesOut' nix-grpc-store-clang-tidy-0.1.0> 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:17:1: error: included header filesystem is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 17 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 18 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:27:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 27 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 28 | nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:46:1: error: included header store-open.hh is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 46 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 47 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:80:24: error: member 'metrics' of type 'nixgrpc::Metrics &' is a reference [cppcoreguidelines-avoid-const-or-ref-data-members,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 80 | nixgrpc::Metrics & metrics; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:137:10: error: method 'authorize' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 137 | auto authorize(const std::optional & cert, std::string_view method, nixgrpc::Role minRole) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:164:9: error: 2 adjacent parameters of 'NixRemoteService' of similar type ('std::string') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 164 | std::string socketPath, nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 165 | std::string storeUri, nix-grpc-store-clang-tidy-0.1.0> | ~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:164:21: note: the first parameter in the range is 'socketPath' nix-grpc-store-clang-tidy-0.1.0> 164 | std::string socketPath, nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:165:21: note: the last parameter in the range is 'storeUri' nix-grpc-store-clang-tidy-0.1.0> 165 | std::string storeUri, nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:247:31: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 247 | nix::StorePathSet paths; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:531:48: error: the parameter 'line' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 531 | auto sendLogLine = [&](std::string line) -> void { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const & nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:540:13: error: variable 'drvSource' of type 'nix::StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 540 | nix::StringSource drvSource(request->drv()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:620:48: error: the parameter 'line' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 620 | auto sendLogLine = [&](std::string line) -> void { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const & nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:644:17: error: variable 'sink' of type 'nix::StringSink' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 644 | nix::StringSink sink; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:651:31: error: variable 'outputPaths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 651 | nix::StorePathSet outputPaths; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:834:6: error: an exception may be thrown in function 'main' which should not throw exceptions [bugprone-exception-escape,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 834 | auto main(int argc, char ** argv) -> int nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/nix-grpc-daemon.cc:862:9: note: frame #0: unhandled exception of type 'nix::Error' may be thrown in function 'main' here nix-grpc-store-clang-tidy-0.1.0> 862 | throw nix::Error("failed to start gRPC server on '%s'", options.listen); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:27: error: 2 adjacent parameters of 'readCoalesced' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:31: note: the first parameter in the range is 'sourceFd' nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:57: note: the last parameter in the range is 'buf' nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:159:23: error: variable 'count' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 159 | ssize_t const count = readCoalesced(sourceFd, input); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:276:44: error: the parameter 'initial' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 276 | static auto makeInitialMsg(std::string initial) -> Msg nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const & nix-grpc-store-clang-tidy-0.1.0> ../version:1:1: error: expected unqualified-id [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> 1 | 0.1.0 nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> >>> /nix/store/fb8ffdcrnbxq6h7khli0k8pf4vk4ds66-clang-tools-22.1.8/bin/clang-tidy --use-color -quiet -p /nix/var/nix/builds/nix-50194-160511831/source/build /nix/var/nix/builds/nix-50194-160511831/source/src/grpc-store.cc nix-grpc-store-clang-tidy-0.1.0> Errors encountered while running clang-tidy nix-grpc-store-clang-tidy-0.1.0> Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/grpc-store.cc. nix-grpc-store-clang-tidy-0.1.0> error: too many errors emitted, stopping now [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:22:1: error: included header map is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 22 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 23 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:30:1: error: included header environment-variables.hh is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 30 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 31 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:37:1: error: included header types.hh is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 37 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 38 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:41:1: error: included header pem.h is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 41 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 42 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:48:1: error: included header unistd.h is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 48 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 49 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:49:1: error: included header variant is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 49 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 50 | #include nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:50:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 50 | #include nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 51 | nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:69:1: error: included header nix_remote.grpc.pb.h is not used directly [misc-include-cleaner,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 69 | #include "nix_remote.grpc.pb.h" nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> 70 | #include "nix_remote.pb.h" nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:218:42: error: the parameter 'authority' of type 'ParsedURL::Authority' is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 218 | GrpcStoreConfig(ParsedURL::Authority authority, const Params ¶ms) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const & nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:232:5: error: function 'getReference' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 232 | auto getReference() const -> StoreReference override { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | [[nodiscard]] nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:243:5: error: function 'openStore' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 243 | auto openStore() const -> ref override; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | [[nodiscard]] nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:263:10: error: method 'makeChannel' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 263 | auto makeChannel(bool ownConnection) -> std::shared_ptr nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:280:5: error: constructor does not initialize these fields: stub, prefetchedInfos, infoBatch [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 259 | GrpcStore(const ref &config) nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:356:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 356 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:362:7: error: variable 'reply' of type 'remote::QueryValidPathsReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 362 | remote::QueryValidPathsReply reply; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:365:20: error: variable 'res' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 365 | StorePathSet res; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:376:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 376 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:377:7: error: variable 'request' of type 'remote::QueryMissingRequest' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 377 | remote::QueryMissingRequest request; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:381:7: error: variable 'reply' of type 'remote::QueryMissingReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 381 | remote::QueryMissingReply reply; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:416:9: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 416 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:418:9: error: variable 'reply' of type 'remote::StoreInfoReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 418 | remote::StoreInfoReply reply; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:431:20: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 431 | StorePathSet paths; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:550:9: error: variable 'sink' of type 'StringSink' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 550 | StringSink sink; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:555:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 555 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:565:11: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 565 | StringSource source(msg.done().result()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:598:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 598 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:608:11: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 608 | StringSource source(msg.done().results()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:637:22: error: variable 'drvPaths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 637 | StorePathSet drvPaths; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:664:7: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 664 | StringSource source(entry.info()); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:682:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 682 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:683:7: error: variable 'request' of type 'remote::QueryPathInfosRequest' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 683 | remote::QueryPathInfosRequest request; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:687:7: error: variable 'reply' of type 'remote::QueryPathInfosReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 687 | remote::QueryPathInfosReply reply; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:748:30: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 748 | StorePathSet paths; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:757:15: error: empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether [bugprone-empty-catch,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 757 | } catch (...) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:794:12: error: constructor does not initialize these fields: stream [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 794 | struct Connection : RemoteStore::Connection nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> 795 | { nix-grpc-store-clang-tidy-0.1.0> 796 | private: nix-grpc-store-clang-tidy-0.1.0> 797 | friend struct GrpcStore; nix-grpc-store-clang-tidy-0.1.0> 798 | nix-grpc-store-clang-tidy-0.1.0> 799 | // RemoteStore::Connection speaks through FdSink/FdSource, so bridge the nix-grpc-store-clang-tidy-0.1.0> 800 | // gRPC stream to a pair of pipes with pump threads. This keeps the nix-grpc-store-clang-tidy-0.1.0> 801 | // blocking, ordered semantics the worker protocol relies on without nix-grpc-store-clang-tidy-0.1.0> 802 | // reimplementing Source/Sink on top of gRPC. nix-grpc-store-clang-tidy-0.1.0> 803 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> 804 | std::unique_ptr stream; nix-grpc-store-clang-tidy-0.1.0> | nix-grpc-store-clang-tidy-0.1.0> | {} nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:865:24: error: rvalue reference parameter 'pathsToCopy_' is never moved from inside the function body [cppcoreguidelines-rvalue-reference-param-not-moved,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 865 | PathsSource && pathsToCopy_, Activity & act, RepairFlag repair, CheckSigsFlag checkSigs) override nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:868:9: error: variable 'bytesExpected' of type 'uint64_t' (aka 'unsigned long long') can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 868 | uint64_t bytesExpected = 0; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:874:9: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 874 | grpc::ClientContext ctx; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/grpc-store.cc:875:9: error: variable 'reply' of type 'remote::AddMultipleReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 875 | remote::AddMultipleReply reply; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:44:5: error: constructor does not initialize these fields: sessions, buffers, pending, narSizes [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 44 | NarFetcher( nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:59:22: error: 2 adjacent parameters of 'recordOrder' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 59 | void recordOrder(std::vector order, std::map sizes) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:59:50: note: the first parameter in the range is 'order' nix-grpc-store-clang-tidy-0.1.0> 59 | void recordOrder(std::vector order, std::map sizes) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:59:92: note: the last parameter in the range is 'sizes' nix-grpc-store-clang-tidy-0.1.0> 59 | void recordOrder(std::vector order, std::map sizes) nix-grpc-store-clang-tidy-0.1.0> | ^~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:96:5: error: use '= default' to define a trivial destructor [modernize-use-equals-default,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 96 | ~NarFetcher() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:121:13: error: 'fd' should be initialized in a member initializer of the constructor [cppcoreguidelines-prefer-member-initializer,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 117 | SpoolBuffer() nix-grpc-store-clang-tidy-0.1.0> | nix-grpc-store-clang-tidy-0.1.0> | : fd(std::move(tmpFd)) nix-grpc-store-clang-tidy-0.1.0> 118 | { nix-grpc-store-clang-tidy-0.1.0> 119 | auto [tmpFd, tmpPath] = nix::createTempFile("nix-grpc-nar"); nix-grpc-store-clang-tidy-0.1.0> 120 | ::unlink(tmpPath.c_str()); nix-grpc-store-clang-tidy-0.1.0> 121 | fd = std::move(tmpFd); nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:206:14: error: method 'run' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 206 | void run() nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:210:17: error: variable 'frame' of type 'nix::remote::NarFrame' can be declared 'const' [misc-const-correctness,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 210 | nix::remote::NarFrame frame; nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:235:15: error: empty catch statements hide issues; to handle exceptions appropriately, consider re-throwing, handling, or avoiding catch altogether [bugprone-empty-catch,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 235 | } catch (...) { nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> ../src/nar-fetcher.hh:253:24: error: method 'narSizeOf' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 253 | [[nodiscard]] auto narSizeOf(const nix::StorePath & path) const -> uint64_t nix-grpc-store-clang-tidy-0.1.0> | ^ ~~~~~ nix-grpc-store-clang-tidy-0.1.0> | static nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:27: error: 2 adjacent parameters of 'readCoalesced' of similar type ('int') are easily swapped by mistake [bugprone-easily-swappable-parameters,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:31: note: the first parameter in the range is 'sourceFd' nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~~~~~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:65:57: note: the last parameter in the range is 'buf' nix-grpc-store-clang-tidy-0.1.0> 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t nix-grpc-store-clang-tidy-0.1.0> | ^~~ nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:159:23: error: variable 'count' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 159 | ssize_t const count = readCoalesced(sourceFd, input); nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | = 0 nix-grpc-store-clang-tidy-0.1.0> ../src/pump.hh:276:44: error: the parameter 'initial' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] nix-grpc-store-clang-tidy-0.1.0> 276 | static auto makeInitialMsg(std::string initial) -> Msg nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> | const & nix-grpc-store-clang-tidy-0.1.0> ../version:1:1: error: expected unqualified-id [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> 1 | 0.1.0 nix-grpc-store-clang-tidy-0.1.0> | ^ nix-grpc-store-clang-tidy-0.1.0> /nix/store/mcbznvdb0xcncmv55gkg8gvyjjasn46k-abseil-cpp-20260107.1-dev/include/absl/meta/type_traits.h:205:24: error: no template named 'result_of' in namespace 'std' [clang-diagnostic-error] nix-grpc-store-clang-tidy-0.1.0> 205 | using result_of = std::result_of; nix-grpc-store-clang-tidy-0.1.0> | ~~~~~^ nix-grpc-store-clang-tidy-0.1.0> FAILED: [code=1] meson-internal__clang-tidy nix-grpc-store-clang-tidy-0.1.0> /nix/store/by8lz2aj6nw13mm1mv08vr1gqlmz0ih5-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-50194-160511831/source /nix/var/nix/builds/nix-50194-160511831/source/build --color always nix-grpc-store-clang-tidy-0.1.0> ninja: build stopped: subcommand failed. error: build of '/nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv' on 'ssh-ng://customer@mac02' failed: Cannot build '/nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0 Last 25 log lines: > 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t > | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ../src/pump.hh:65:31: note: the first parameter in the range is 'sourceFd' > 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t > | ^~~~~~~~ > ../src/pump.hh:65:57: note: the last parameter in the range is 'buf' > 65 | inline auto readCoalesced(int sourceFd, std::span buf) -> ssize_t > | ^~~ > ../src/pump.hh:159:23: error: variable 'count' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] > 159 | ssize_t const count = readCoalesced(sourceFd, input); > | ^ > | = 0 > ../src/pump.hh:276:44: error: the parameter 'initial' of type 'std::string' (aka 'basic_string') is copied for each invocation but only used as a const reference; consider making it a const reference [performance-unnecessary-value-param,-warnings-as-errors] > 276 | static auto makeInitialMsg(std::string initial) -> Msg > | ^ > | const & > ../version:1:1: error: expected unqualified-id [clang-diagnostic-error] > 1 | 0.1.0 > | ^ > /nix/store/mcbznvdb0xcncmv55gkg8gvyjjasn46k-abseil-cpp-20260107.1-dev/include/absl/meta/type_traits.h:205:24: error: no template named 'result_of' in namespace 'std' [clang-diagnostic-error] > 205 | using result_of = std::result_of; > | ~~~~~^ > FAILED: [code=1] meson-internal__clang-tidy > /nix/store/by8lz2aj6nw13mm1mv08vr1gqlmz0ih5-meson-1.10.2/bin/meson --internal clangtidy /nix/var/nix/builds/nix-50194-160511831/source /nix/var/nix/builds/nix-50194-160511831/source/build --color always > ninja: build stopped: subcommand failed. For full logs, run: nix log /nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv error: Cannot build '/nix/store/ih2ffdzswffvpjjk6hby687rcfmsmza8-nix-grpc-store-clang-tidy-0.1.0.drv'. Reason: builder failed with exit code 1. Output paths: /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0