Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nix
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: c277231b7d8c
Choose a base ref
...
head repository: NixOS/nix
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 29043e7e9eda
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Apr 16, 2020

  1. Fix

    edolstra committed Apr 16, 2020
    Copy the full SHA
    29043e7 View commit details
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/nix/flake.cc
4 changes: 2 additions & 2 deletions src/nix/flake.cc
Original file line number Diff line number Diff line change
@@ -156,7 +156,7 @@ struct CmdFlakeInfo : FlakeCommand, MixJSON

if (json) {
auto json = flakeToJson(*store, flake);
logger->stdout(json.dump());
logger->stdout("%s", json.dump());
} else
printFlakeInfo(*store, flake);
}
@@ -174,7 +174,7 @@ struct CmdFlakeListInputs : FlakeCommand, MixJSON
auto flake = lockFlake();

if (json)
logger->stdout(flake.lockFile.toJson());
logger->stdout("%s", flake.lockFile.toJson());
else {
logger->stdout("%s", flake.flake.lockedRef);