Running phase: unpackPhase unpacking source archive /nix/store/nbwclyvpgrkmw42l3kg495b4mip5y5sj-source source root is source Running phase: patchPhase Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase 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 The Meson build system Version: 1.10.2 Source dir: /nix/var/nix/builds/nix-50194-160511831/source Build dir: /nix/var/nix/builds/nix-50194-160511831/source/build Build type: native build WARNING: Project does not target a minimum version but uses feature introduced in '1.1': meson.options file. Use meson_options.txt instead Project name: nix-grpc-store Project version: 0.1.0 C++ compiler for the host machine: clang++ (clang 21.1.8 "clang version 21.1.8") C++ linker for the host machine: clang++ ld64 956.6 Host machine cpu family: aarch64 Host machine cpu: aarch64 Found pkg-config: YES (/nix/store/lqahvywm9fgdhi7lwz4y56dkamsg7z0s-pkg-config-wrapper-0.29.2/bin/pkg-config) 0.29.2 Run-time dependency grpc++ found: YES 1.83.0 Run-time dependency protobuf found: YES 35.1.0 Run-time dependency libzstd found: YES 1.5.7 Run-time dependency threads found: YES Run-time dependency libcrypto found: YES 3.6.3 Run-time dependency prometheus-cpp-core found: YES 1.3.0 Run-time dependency prometheus-cpp-pull found: YES 1.3.0 Run-time dependency nix-store found: YES 2.36.0pre20260831_b983ba81 Run-time dependency nix-util found: YES 2.36.0pre20260831_b983ba81 Program protoc found: YES (/nix/store/v7ijrik242ylbl098071amfs9wzks07i-protobuf-35.1/bin/protoc) Program grpc_cpp_plugin found: YES (/nix/store/1yhx18kvaf265sfyf6vbzggdvya4q3i5-grpc-1.83.0/bin/grpc_cpp_plugin) Run-time dependency dl found: YES Build targets in project: 4 WARNING: Project specifies no minimum version but uses features which were added in versions: * 1.1: {'meson.options file'} nix-grpc-store 0.1.0 User defined options auto_features: enabled bindir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/bin buildtype : plain includedir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/include infodir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/info 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 localedir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/locale mandir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/share/man prefix : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0 sbindir : /nix/store/a0jsyacima3hmqzrnsrqpih1x3v7x7yd-nix-grpc-store-clang-tidy-0.1.0/sbin wrap_mode : nodownload Found ninja-1.13.2 at /nix/store/gan2c2gpw4w1yi2r5asx6a087fa2a759-ninja-1.13.2/bin/ninja mesonConfigurePhase: enabled\ parallel\ building Running phase: buildPhase [1/1] Generating nix_remote_proto with a custom command [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/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 Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/plugin-loader.cc. ../version:1:1: error: expected unqualified-id [clang-diagnostic-error] 1 | 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 Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/nix-grpc-daemon.cc. error: too many errors emitted, stopping now [clang-diagnostic-error] ../src/acl.hh:51:7: error: constructor does not initialize these fields: rules [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 51 | class Acl | ^ 52 | { 53 | struct Rule 54 | { 55 | std::string pattern; 56 | Role role; 57 | }; 58 | 59 | std::vector rules; | | {} ../src/acl.hh:70:10: error: method 'addRule' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 70 | void addRule(std::string_view spec) | ^ | static ../src/acl.hh:95:24: error: method 'roleFor' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 95 | [[nodiscard]] auto roleFor(const std::optional & commonName) const -> std::optional | ^ ~~~~~ | static ../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] 61 | static_cast(std::strftime(timestamp.data(), timestamp.size(), "%Y-%m-%dT%H:%M:%SZ", &utc)); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/logfmt.hh:61:23: note: cast the expression to void to silence this warning ../src/metrics.hh:37:5: error: constructor does not initialize these fields: exposer [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 17 | explicit Metrics(const std::string & listen) | ^ ../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] 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/metrics.hh:50:68: note: the first parameter in the range is 'bytesIn' 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) | ^~~~~~~ ../src/metrics.hh:50:86: note: the last parameter in the range is 'bytesOut' 50 | void countTunnelBytes(const std::string & commonName, uint64_t bytesIn, uint64_t bytesOut) | ^~~~~~~~ ../src/nix-grpc-daemon.cc:17:1: error: included header filesystem is not used directly [misc-include-cleaner,-warnings-as-errors] 17 | #include | ^~~~~~~~~~~~~~~~~~~~~ 18 | #include ../src/nix-grpc-daemon.cc:27:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] 27 | #include | ^~~~~~~~~~~~~~~~~ 28 | ../src/nix-grpc-daemon.cc:46:1: error: included header store-open.hh is not used directly [misc-include-cleaner,-warnings-as-errors] 46 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 47 | #include ../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] 80 | nixgrpc::Metrics & metrics; | ^ ../src/nix-grpc-daemon.cc:137:10: error: method 'authorize' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 137 | auto authorize(const std::optional & cert, std::string_view method, nixgrpc::Role minRole) | ^ | static ../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] 164 | std::string socketPath, | ^~~~~~~~~~~~~~~~~~~~~~~ 165 | std::string storeUri, | ~~~~~~~~~~~~~~~~~~~~ ../src/nix-grpc-daemon.cc:164:21: note: the first parameter in the range is 'socketPath' 164 | std::string socketPath, | ^~~~~~~~~~ ../src/nix-grpc-daemon.cc:165:21: note: the last parameter in the range is 'storeUri' 165 | std::string storeUri, | ^~~~~~~~ ../src/nix-grpc-daemon.cc:247:31: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 247 | nix::StorePathSet paths; | ^ | = 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] 531 | auto sendLogLine = [&](std::string line) -> void { | ^ | const & ../src/nix-grpc-daemon.cc:540:13: error: variable 'drvSource' of type 'nix::StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 540 | nix::StringSource drvSource(request->drv()); | ^ | const ../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] 620 | auto sendLogLine = [&](std::string line) -> void { | ^ | const & ../src/nix-grpc-daemon.cc:644:17: error: variable 'sink' of type 'nix::StringSink' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 644 | nix::StringSink sink; | ^ | const ../src/nix-grpc-daemon.cc:651:31: error: variable 'outputPaths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 651 | nix::StorePathSet outputPaths; | ^ | = 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] 834 | auto main(int argc, char ** argv) -> int | ^ ../src/nix-grpc-daemon.cc:862:9: note: frame #0: unhandled exception of type 'nix::Error' may be thrown in function 'main' here 862 | throw nix::Error("failed to start gRPC server on '%s'", options.listen); | ^ ../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] 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/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 Errors encountered while running clang-tidy Error while processing /nix/var/nix/builds/nix-50194-160511831/source/src/grpc-store.cc. error: too many errors emitted, stopping now [clang-diagnostic-error] ../src/grpc-store.cc:22:1: error: included header map is not used directly [misc-include-cleaner,-warnings-as-errors] 22 | #include | ^~~~~~~~~~~~~~ 23 | #include ../src/grpc-store.cc:30:1: error: included header environment-variables.hh is not used directly [misc-include-cleaner,-warnings-as-errors] 30 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 31 | #include ../src/grpc-store.cc:37:1: error: included header types.hh is not used directly [misc-include-cleaner,-warnings-as-errors] 37 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 38 | #include ../src/grpc-store.cc:41:1: error: included header pem.h is not used directly [misc-include-cleaner,-warnings-as-errors] 41 | #include | ^~~~~~~~~~~~~~~~~~~~~~~~ 42 | #include ../src/grpc-store.cc:48:1: error: included header unistd.h is not used directly [misc-include-cleaner,-warnings-as-errors] 48 | #include | ^~~~~~~~~~~~~~~~~~~ 49 | #include ../src/grpc-store.cc:49:1: error: included header variant is not used directly [misc-include-cleaner,-warnings-as-errors] 49 | #include | ^~~~~~~~~~~~~~~~~~ 50 | #include ../src/grpc-store.cc:50:1: error: included header vector is not used directly [misc-include-cleaner,-warnings-as-errors] 50 | #include | ^~~~~~~~~~~~~~~~~ 51 | ../src/grpc-store.cc:69:1: error: included header nix_remote.grpc.pb.h is not used directly [misc-include-cleaner,-warnings-as-errors] 69 | #include "nix_remote.grpc.pb.h" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 70 | #include "nix_remote.pb.h" ../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] 218 | GrpcStoreConfig(ParsedURL::Authority authority, const Params ¶ms) | ^ | const & ../src/grpc-store.cc:232:5: error: function 'getReference' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] 232 | auto getReference() const -> StoreReference override { | ^ | [[nodiscard]] ../src/grpc-store.cc:243:5: error: function 'openStore' should be marked [[nodiscard]] [modernize-use-nodiscard,-warnings-as-errors] 243 | auto openStore() const -> ref override; | ^ | [[nodiscard]] ../src/grpc-store.cc:263:10: error: method 'makeChannel' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 263 | auto makeChannel(bool ownConnection) -> std::shared_ptr | ^ | static ../src/grpc-store.cc:280:5: error: constructor does not initialize these fields: stub, prefetchedInfos, infoBatch [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 259 | GrpcStore(const ref &config) | ^ ../src/grpc-store.cc:356:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 356 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:362:7: error: variable 'reply' of type 'remote::QueryValidPathsReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 362 | remote::QueryValidPathsReply reply; | ^ | const ../src/grpc-store.cc:365:20: error: variable 'res' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 365 | StorePathSet res; | ^ | = 0 ../src/grpc-store.cc:376:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 376 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:377:7: error: variable 'request' of type 'remote::QueryMissingRequest' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 377 | remote::QueryMissingRequest request; | ^ | const ../src/grpc-store.cc:381:7: error: variable 'reply' of type 'remote::QueryMissingReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 381 | remote::QueryMissingReply reply; | ^ | const ../src/grpc-store.cc:416:9: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 416 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:418:9: error: variable 'reply' of type 'remote::StoreInfoReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 418 | remote::StoreInfoReply reply; | ^ | const ../src/grpc-store.cc:431:20: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 431 | StorePathSet paths; | ^ | = 0 ../src/grpc-store.cc:550:9: error: variable 'sink' of type 'StringSink' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 550 | StringSink sink; | ^ | const ../src/grpc-store.cc:555:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 555 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:565:11: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 565 | StringSource source(msg.done().result()); | ^ | const ../src/grpc-store.cc:598:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 598 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:608:11: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 608 | StringSource source(msg.done().results()); | ^ | const ../src/grpc-store.cc:637:22: error: variable 'drvPaths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 637 | StorePathSet drvPaths; | ^ | = 0 ../src/grpc-store.cc:664:7: error: variable 'source' of type 'StringSource' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 664 | StringSource source(entry.info()); | ^ | const ../src/grpc-store.cc:682:7: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 682 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:683:7: error: variable 'request' of type 'remote::QueryPathInfosRequest' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 683 | remote::QueryPathInfosRequest request; | ^ | const ../src/grpc-store.cc:687:7: error: variable 'reply' of type 'remote::QueryPathInfosReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 687 | remote::QueryPathInfosReply reply; | ^ | const ../src/grpc-store.cc:748:30: error: variable 'paths' is not initialized [cppcoreguidelines-init-variables,-warnings-as-errors] 748 | StorePathSet paths; | ^ | = 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] 757 | } catch (...) { | ^ ../src/grpc-store.cc:794:12: error: constructor does not initialize these fields: stream [cppcoreguidelines-pro-type-member-init,-warnings-as-errors] 794 | struct Connection : RemoteStore::Connection | ^ 795 | { 796 | private: 797 | friend struct GrpcStore; 798 | 799 | // RemoteStore::Connection speaks through FdSink/FdSource, so bridge the 800 | // gRPC stream to a pair of pipes with pump threads. This keeps the 801 | // blocking, ordered semantics the worker protocol relies on without 802 | // reimplementing Source/Sink on top of gRPC. 803 | grpc::ClientContext ctx; 804 | std::unique_ptr stream; | | {} ../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] 865 | PathsSource && pathsToCopy_, Activity & act, RepairFlag repair, CheckSigsFlag checkSigs) override | ^ ../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] 868 | uint64_t bytesExpected = 0; | ^ | const ../src/grpc-store.cc:874:9: error: variable 'ctx' of type 'grpc::ClientContext' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 874 | grpc::ClientContext ctx; | ^ | const ../src/grpc-store.cc:875:9: error: variable 'reply' of type 'remote::AddMultipleReply' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 875 | remote::AddMultipleReply reply; | ^ | const ../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] 44 | NarFetcher( | ^ ../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] 59 | void recordOrder(std::vector order, std::map sizes) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ../src/nar-fetcher.hh:59:50: note: the first parameter in the range is 'order' 59 | void recordOrder(std::vector order, std::map sizes) | ^~~~~ ../src/nar-fetcher.hh:59:92: note: the last parameter in the range is 'sizes' 59 | void recordOrder(std::vector order, std::map sizes) | ^~~~~ ../src/nar-fetcher.hh:96:5: error: use '= default' to define a trivial destructor [modernize-use-equals-default,-warnings-as-errors] 96 | ~NarFetcher() | ^ ../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] 117 | SpoolBuffer() | | : fd(std::move(tmpFd)) 118 | { 119 | auto [tmpFd, tmpPath] = nix::createTempFile("nix-grpc-nar"); 120 | ::unlink(tmpPath.c_str()); 121 | fd = std::move(tmpFd); | ^~~~~~~~~~~~~~~~~~~~~~ ../src/nar-fetcher.hh:206:14: error: method 'run' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 206 | void run() | ^ | static ../src/nar-fetcher.hh:210:17: error: variable 'frame' of type 'nix::remote::NarFrame' can be declared 'const' [misc-const-correctness,-warnings-as-errors] 210 | nix::remote::NarFrame frame; | ^ | const ../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] 235 | } catch (...) { | ^ ../src/nar-fetcher.hh:253:24: error: method 'narSizeOf' can be made static [readability-convert-member-functions-to-static,-warnings-as-errors] 253 | [[nodiscard]] auto narSizeOf(const nix::StorePath & path) const -> uint64_t | ^ ~~~~~ | static ../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] 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.