1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-05 16:31:47 +02:00

dropEmptyInitThenConcatStringsSep -> concatStringSep: store paths are not empty

This commit is contained in:
Robert Hensing 2024-07-13 01:02:30 +02:00
parent 49d100ba8b
commit f1966e22d9
4 changed files with 9 additions and 4 deletions

View file

@ -4,6 +4,7 @@
#include "store-api.hh"
#include "json-utils.hh"
#include "comparator.hh"
#include "strings.hh"
namespace nix {
@ -30,7 +31,7 @@ std::string ValidPathInfo::fingerprint(const Store & store) const
"1;" + store.printStorePath(path) + ";"
+ narHash.to_string(HashFormat::Nix32, true) + ";"
+ std::to_string(narSize) + ";"
+ dropEmptyInitThenConcatStringsSep(",", store.printStorePathSet(references));
+ concatStringsSep(",", store.printStorePathSet(references));
}