From 55a060f64b490e0c4c555896ec993d43a0eb0abc Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Sat, 30 Aug 2025 00:03:54 +0300 Subject: [PATCH] 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 b6f98b52a4b22c5d349266175dd8395c5c6b8f6f) --- src/nix/develop.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/develop.cc b/src/nix/develop.cc index d3381a988..dfad6f94f 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -646,7 +646,7 @@ struct CmdDevelop : Common, MixEnvironment nixpkgs = i->nixpkgsFlakeRef(); auto bashInstallable = make_ref( - this, + nullptr, //< Don't barf when the command is run with --arg/--argstr state, std::move(nixpkgs), "bashInteractive",