File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -57,9 +57,10 @@ std::string EvalState::computeBaseName(const SourcePath & path, PosIdx pos)
5757 if (path.accessor == rootFS) {
5858 if (auto storePath = store->maybeParseStorePath (path.path .abs ())) {
5959 warn (
60- " Performing inefficient double copy of path '%s' to the store at %s. "
61- " This can typically be avoided by rewriting an attribute like `src = ./.` "
62- " to `src = builtins.path { path = ./.; name = \" source\" ; }`." ,
60+ " Copying '%s' to the store again\n "
61+ " You can make Nix evaluate faster and copy fewer files by replacing `./.` with the `self` flake input, "
62+ " or `builtins.path { path = ./.; name = \" source\" ; }`\n\n "
63+ " Location: %s\n " ,
6364 path,
6465 positions[pos]);
6566 return std::string (fetchToStore (*store, path, FetchMode::DryRun, storePath->name ()).to_string ());
You can’t perform that action at this time.
0 commit comments