From 98031b6050000bccef915b99cf3a2ed810a1b35e Mon Sep 17 00:00:00 2001 From: Will Dietz Date: Wed, 7 Feb 2018 14:58:38 -0600 Subject: [PATCH] nix build: Don't create output links with --dry-run. Fixes #1849. --- src/nix/build.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/nix/build.cc b/src/nix/build.cc index f7c99f12d..093415a0d 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -52,6 +52,8 @@ struct CmdBuild : MixDryRun, InstallablesCommand { auto buildables = toBuildables(store, dryRun ? DryRun : Build, installables); + if (dryRun) return; + for (size_t i = 0; i < buildables.size(); ++i) { auto & b(buildables[i]);