1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-28 13:11:00 +01:00

Hide double copy warning

This commit is contained in:
Eelco Dolstra 2025-07-09 21:52:47 +02:00
parent 063837069c
commit 700ceb2ce1

View file

@ -60,7 +60,7 @@ std::string EvalState::computeBaseName(const SourcePath & path, PosIdx pos)
{ {
if (path.accessor == rootFS) { if (path.accessor == rootFS) {
if (auto storePath = store->maybeParseStorePath(path.path.abs())) { if (auto storePath = store->maybeParseStorePath(path.path.abs())) {
warn( debug(
"Copying '%s' to the store again.\n" "Copying '%s' to the store again.\n"
"You can make Nix evaluate faster and copy fewer files by replacing `./.` with the `self` flake input, " "You can make Nix evaluate faster and copy fewer files by replacing `./.` with the `self` flake input, "
"or `builtins.path { path = ./.; name = \"source\"; }`.\n", "or `builtins.path { path = ./.; name = \"source\"; }`.\n",