forked from lix-project/lix
nix flake check: Don't build apps
This was inconsistent since we're not building 'packages' or 'defaultPackage' either. Closes #3726.
This commit is contained in:
parent
377345e26f
commit
334e26bfc2
|
@ -246,9 +246,7 @@ struct CmdFlakeCheck : FlakeCommand
|
||||||
auto app = App(*state, v);
|
auto app = App(*state, v);
|
||||||
for (auto & i : app.context) {
|
for (auto & i : app.context) {
|
||||||
auto [drvPathS, outputName] = decodeContext(i);
|
auto [drvPathS, outputName] = decodeContext(i);
|
||||||
auto drvPath = store->parseStorePath(drvPathS);
|
store->parseStorePath(drvPathS);
|
||||||
if (!outputName.empty() && drvPath.isDerivation())
|
|
||||||
drvPaths.push_back({drvPath});
|
|
||||||
}
|
}
|
||||||
} catch (Error & e) {
|
} catch (Error & e) {
|
||||||
e.addPrefix(fmt("while checking the app definition '" ANSI_BOLD "%s" ANSI_NORMAL "' at %s:\n", attrPath, pos));
|
e.addPrefix(fmt("while checking the app definition '" ANSI_BOLD "%s" ANSI_NORMAL "' at %s:\n", attrPath, pos));
|
||||||
|
|
Loading…
Reference in a new issue