mirror of
https://github.com/NixOS/nix.git
synced 2025-11-14 06:22:42 +01:00
Update src/libexpr/paths.cc
This commit is contained in:
parent
3e45b40d66
commit
7a450a8ba9
1 changed files with 4 additions and 3 deletions
|
|
@ -57,9 +57,10 @@ std::string EvalState::computeBaseName(const SourcePath & path, PosIdx pos)
|
|||
if (path.accessor == rootFS) {
|
||||
if (auto storePath = store->maybeParseStorePath(path.path.abs())) {
|
||||
warn(
|
||||
"Performing inefficient double copy of path '%s' to the store at %s. "
|
||||
"This can typically be avoided by rewriting an attribute like `src = ./.` "
|
||||
"to `src = builtins.path { path = ./.; name = \"source\"; }`.",
|
||||
"Copying '%s' to the store again\n"
|
||||
"You can make Nix evaluate faster and copy fewer files by replacing `./.` with the `self` flake input, "
|
||||
"or `builtins.path { path = ./.; name = \"source\"; }`\n\n"
|
||||
"Location: %s\n",
|
||||
path,
|
||||
positions[pos]);
|
||||
return std::string(fetchToStore(*store, path, FetchMode::DryRun, storePath->name()).to_string());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue