1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 19:57:59 +02:00

Merge pull request #11844 from roberth/papercut-nix-log

Make nix log command easy to copy
This commit is contained in:
John Ericson 2024-11-17 19:06:16 -05:00 committed by GitHub
commit 68e15beedd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -991,7 +991,10 @@ Goal::Co DerivationGoal::buildDone()
auto nixLogCommand = experimentalFeatureSettings.isEnabled(Xp::NixCommand) auto nixLogCommand = experimentalFeatureSettings.isEnabled(Xp::NixCommand)
? "nix log" ? "nix log"
: "nix-store -l"; : "nix-store -l";
msg += fmt("For full logs, run '" ANSI_BOLD "%s %s" ANSI_NORMAL "'.", // The command is on a separate line for easy copying, such as with triple click.
// This message will be indented elsewhere, so removing the indentation before the
// command will not put it at the start of the line unfortunately.
msg += fmt("For full logs, run:\n " ANSI_BOLD "%s %s" ANSI_NORMAL,
nixLogCommand, nixLogCommand,
worker.store.printStorePath(drvPath)); worker.store.printStorePath(drvPath));
} }