From 761ac9d584da967d032b51076f91d0967252412c Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 14 Sep 2021 12:31:07 +0200 Subject: [PATCH] Remove the 'ca-references' feature check Fixes #3422. Fixes #4425. --- src/libstore/local-store.cc | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/libstore/local-store.cc b/src/libstore/local-store.cc index 2890df479..634e9eb8b 100644 --- a/src/libstore/local-store.cc +++ b/src/libstore/local-store.cc @@ -1244,11 +1244,6 @@ void LocalStore::addToStore(const ValidPathInfo & info, Source & source, deletePath(realPath); - // text hashing has long been allowed to have non-self-references because it is used for drv files. - bool refersToSelf = info.references.count(info.path) > 0; - if (info.ca.has_value() && !info.references.empty() && !(std::holds_alternative(*info.ca) && !refersToSelf)) - settings.requireExperimentalFeature("ca-references"); - /* While restoring the path from the NAR, compute the hash of the NAR. */ HashSink hashSink(htSHA256);