forked from lix-project/lix
Fix conditions for ca-references
This commit is contained in:
parent
34b3bfac25
commit
10e81bf871
1 changed files with 1 additions and 1 deletions
|
@ -1071,7 +1071,7 @@ void LocalStore::addToStore(const ValidPathInfo & info, Source & source,
|
||||||
deletePath(realPath);
|
deletePath(realPath);
|
||||||
|
|
||||||
// text hashing has long been allowed to have non-self-references because it is used for drv files.
|
// text hashing has long been allowed to have non-self-references because it is used for drv files.
|
||||||
if (info.ca.has_value() && !info.references.empty() && !(std::holds_alternative<TextHash>(*info.ca) && info.hasSelfReference))
|
if (info.ca.has_value() && !info.references.empty() && !(std::holds_alternative<TextHash>(*info.ca) && !info.hasSelfReference))
|
||||||
settings.requireExperimentalFeature("ca-references");
|
settings.requireExperimentalFeature("ca-references");
|
||||||
|
|
||||||
/* While restoring the path from the NAR, compute the hash
|
/* While restoring the path from the NAR, compute the hash
|
||||||
|
|
Loading…
Reference in a new issue