From 7762b7d629434b82c3ccc51a7a20d2b024ab3926 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 14e2ea6ee..082e04dca 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -641,7 +641,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",