Skip to content

Commit

Permalink
Never copy nix store path to nix store
Browse files Browse the repository at this point in the history
  • Loading branch information
yshui committed Jul 31, 2024
1 parent ed0934b commit 8e9f125
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libfetchers/path.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e9f125

Please sign in to comment.