From b6f98b52a4b22c5d349266175dd8395c5c6b8f6f 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. --- 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 f59dc5bee..ed25e655d 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -647,7 +647,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",