1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-01 22:50:59 +01:00

Reword some comments/API docs to reflect libfetcher's multiple users

It's not just flakes, but also `builtins.fetchTree`. Also try to provide
some more info in general.
This commit is contained in:
John Ericson 2023-09-28 21:10:17 -04:00
parent b912f3a937
commit c816c67eed
3 changed files with 28 additions and 12 deletions

View file

@ -254,7 +254,8 @@ std::optional<Hash> Input::getRev() const
try {
hash = Hash::parseAnyPrefixed(*s);
} catch (BadHash &e) {
// Default to sha1 for backwards compatibility with existing flakes
// Default to sha1 for backwards compatibility with existing
// usages (e.g. `builtins.fetchTree` calls or flake inputs).
hash = Hash::parseAny(*s, htSHA1);
}
}