Skip to content

Commit 7a450a8

Browse files
authored
Update src/libexpr/paths.cc
1 parent 3e45b40 commit 7a450a8

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

src/libexpr/paths.cc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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());

0 commit comments

Comments
 (0)