mirror of
https://github.com/NixOS/nix.git
synced 2025-11-09 03:56:01 +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:
parent
241c84029e
commit
55a060f64b
1 changed files with 1 additions and 1 deletions
|
|
@ -646,7 +646,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",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue