Skip to content

Commit

Permalink
Merge pull request #8122 from bjornfor/use-nix-store-l-unless-experim…
Browse files Browse the repository at this point in the history
…ental-enabled

Don't recommend 'nix log' unless experimental feature is enabled
  • Loading branch information
Ericson2314 authored Apr 1, 2023
2 parents ea1cbc3 + 74d94b2 commit 2ef99cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/libstore/build/derivation-goal.cc
Original file line number Diff line number Diff line change
Expand Up @@ -911,7 +911,11 @@ void DerivationGoal::buildDone()
msg += line;
msg += "\n";
}
msg += fmt("For full logs, run '" ANSI_BOLD "nix log %s" ANSI_NORMAL "'.",
auto nixLogCommand = experimentalFeatureSettings.isEnabled(Xp::NixCommand)
? "nix log"
: "nix-store -l";
msg += fmt("For full logs, run '" ANSI_BOLD "%s %s" ANSI_NORMAL "'.",
nixLogCommand,
worker.store.printStorePath(drvPath));
}

Expand Down

0 comments on commit 2ef99cd

Please sign in to comment.