1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

Merge pull request #14158 from fzakaria/fzakaria/small-clang-tidy-fix

clang-tidy fix for src/libstore/build/derivation-check.cc
This commit is contained in:
Eelco Dolstra 2025-10-06 11:11:48 +02:00 committed by GitHub
commit e5ae81c21a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -18,7 +18,11 @@ void checkOutputs(
for (auto & output : outputs)
outputsByPath.emplace(store.printStorePath(output.second.path), output.second);
for (auto & [outputName, info] : outputs) {
for (auto & pair : outputs) {
// We can't use auto destructuring here because
// clang-tidy seems to complain about it.
const std::string & outputName = pair.first;
const auto & info = pair.second;
auto * outputSpec = get(drvOutputs, outputName);
assert(outputSpec);