From 9ca20e5b4c03ee814fda1510b4603d4306b0fb82 Mon Sep 17 00:00:00 2001 From: jdx <216188+jdx@users.noreply.github.com> Date: Sat, 2 May 2026 11:50:52 -0500 Subject: [PATCH] fix(backend): suppress no-versions warning for unresolved-latest backends Backends that opt into unresolved-latest installation (pipx git tools today) legitimately return an empty remote version list when their source has no discoverable releases (e.g. a GitHub repo with only tags). Skip the "No versions found" warning in that case so commands stay quiet for the intended steady state. Other backends still warn as before. Refs https://github.com/jdx/mise/discussions/9381 --- src/backend/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/backend/mod.rs b/src/backend/mod.rs index e1386a3612..2da6d265ce 100644 --- a/src/backend/mod.rs +++ b/src/backend/mod.rs @@ -854,7 +854,10 @@ pub trait Backend: Debug + Send + Sync { } }) .collect_vec(); - if versions.is_empty() && self.get_type() != BackendType::Http { + if versions.is_empty() + && self.get_type() != BackendType::Http + && self.unresolved_latest_version().is_none() + { warn!("No versions found for {id}"); } Ok(versions)