From 8e9f12526f39c7b65ab403b71cb6fbbe63e2a62e Mon Sep 17 00:00:00 2001 From: Yuxuan Shui Date: Wed, 31 Jul 2024 19:18:26 +0100 Subject: [PATCH] Never copy nix store path to nix store Fixes #11228 --- src/libfetchers/path.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libfetchers/path.cc b/src/libfetchers/path.cc index fca0df84b..2a0d6c9dc 100644 --- a/src/libfetchers/path.cc +++ b/src/libfetchers/path.cc @@ -150,7 +150,7 @@ struct PathInputScheme : InputScheme store->addTempRoot(*storePath); time_t mtime = 0; - if (!storePath || storePath->name() != "source" || !store->isValidPath(*storePath)) { + if (!storePath || !store->isValidPath(*storePath)) { // FIXME: try to substitute storePath. auto src = sinkToSource([&](Sink & sink) { mtime = dumpPathAndGetMtime(absPath, sink, defaultPathFilter);