From cb761e4a0186a8b21f36c8f3d943647883e38c8b Mon Sep 17 00:00:00 2001 From: Hind Montassif Date: Tue, 3 Dec 2024 10:45:11 +0100 Subject: [PATCH] Allow repoquery on non env prefix --- libmamba/src/api/repoquery.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmamba/src/api/repoquery.cpp b/libmamba/src/api/repoquery.cpp index e1a4b0a7e1..7b3b36fcf8 100644 --- a/libmamba/src/api/repoquery.cpp +++ b/libmamba/src/api/repoquery.cpp @@ -28,7 +28,9 @@ namespace mamba config.at("use_default_prefix_fallback").set_value(true); config.at("use_root_prefix_fallback").set_value(true); config.at("target_prefix_checks") - .set_value(MAMBA_ALLOW_EXISTING_PREFIX | MAMBA_ALLOW_MISSING_PREFIX); + .set_value( + MAMBA_ALLOW_EXISTING_PREFIX | MAMBA_ALLOW_MISSING_PREFIX | MAMBA_ALLOW_NOT_ENV_PREFIX + ); config.load(); auto channel_context = ChannelContext::make_conda_compatible(ctx);