1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

nix/develop: Fix misleading ignored error when run with --arg/--argstr

This would print erroneous and misleading diagnostics like:

> error (ignored): error: '--arg' and '--argstr' are incompatible with flakes

When run with --expr/--file. Since this installable is used to get the
bash package it doesn't make sense to check this.

(cherry picked from commit b6f98b52a4)
This commit is contained in:
Sergei Zimmerman 2025-08-30 00:03:54 +03:00 committed by Mergify
parent 75e6c8dc90
commit 7762b7d629

View file

@ -641,7 +641,7 @@ struct CmdDevelop : Common, MixEnvironment
nixpkgs = i->nixpkgsFlakeRef();
auto bashInstallable = make_ref<InstallableFlake>(
this,
nullptr, //< Don't barf when the command is run with --arg/--argstr
state,
std::move(nixpkgs),
"bashInteractive",