1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-02 21:51:50 +02:00

Make nix log command easier to copy

This commit is contained in:
Robert Hensing 2024-11-08 20:13:07 +01:00
parent 8f553f6eef
commit 59246349d5

View file

@ -991,7 +991,8 @@ Goal::Co DerivationGoal::buildDone()
auto nixLogCommand = experimentalFeatureSettings.isEnabled(Xp::NixCommand)
? "nix log"
: "nix-store -l";
msg += fmt("For full logs, run '" ANSI_BOLD "%s %s" ANSI_NORMAL "'.",
// Don't put quotes around the command. This is copy-pasted a ton, so don't make that error prone.
msg += fmt("For full logs, run " ANSI_BOLD "%s %s" ANSI_NORMAL,
nixLogCommand,
worker.store.printStorePath(drvPath));
}