From 8739d35529d27310ae51c6f2de682f17ed93de03 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 7 May 2025 19:22:14 +0200 Subject: [PATCH] Fix tests/NixOS/nix/2.18.1 --- src/libexpr/eval.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libexpr/eval.cc b/src/libexpr/eval.cc index d44ec53c4..2c2950471 100644 --- a/src/libexpr/eval.cc +++ b/src/libexpr/eval.cc @@ -2078,7 +2078,7 @@ void ExprConcatStrings::eval(EvalState & state, Env & env, Value & v) else if (firstType == nFloat) v.mkFloat(nf); else if (firstType == nPath) { - if (!context.empty()) + if (hasContext(context)) state.error("a string that refers to a store path cannot be appended to a path").atPos(pos).withFrame(env, *this).debugThrow(); v.mkPath(state.rootPath(CanonPath(str()))); } else