From 334e26bfc2ce82912602e8a0f9f9c7e0fb5c3221 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 22 Jun 2020 11:31:07 +0200 Subject: [PATCH] nix flake check: Don't build apps This was inconsistent since we're not building 'packages' or 'defaultPackage' either. Closes #3726. --- src/nix/flake.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/nix/flake.cc b/src/nix/flake.cc index 323810090..133e6c7e0 100644 --- a/src/nix/flake.cc +++ b/src/nix/flake.cc @@ -246,9 +246,7 @@ struct CmdFlakeCheck : FlakeCommand auto app = App(*state, v); for (auto & i : app.context) { auto [drvPathS, outputName] = decodeContext(i); - auto drvPath = store->parseStorePath(drvPathS); - if (!outputName.empty() && drvPath.isDerivation()) - drvPaths.push_back({drvPath}); + store->parseStorePath(drvPathS); } } catch (Error & e) { e.addPrefix(fmt("while checking the app definition '" ANSI_BOLD "%s" ANSI_NORMAL "' at %s:\n", attrPath, pos));