diff --git a/src/plugins/core/zig.rs b/src/plugins/core/zig.rs index 6976698ac..bfe4afaed 100644 --- a/src/plugins/core/zig.rs +++ b/src/plugins/core/zig.rs @@ -42,7 +42,18 @@ impl ZigPlugin { fn fetch_remote_versions(&self) -> Result> { match self.core.fetch_remote_versions_from_mise() { - Ok(Some(versions)) => return Ok(versions), + Ok(Some(versions)) => { + return Ok(versions + .into_iter() + .map(|r| { + if r == "master" { + "ref:master".to_string() + } else { + r + } + }) + .collect()) + } Ok(None) => {} Err(e) => warn!("failed to fetch remote versions: {}", e), } @@ -52,6 +63,13 @@ impl ZigPlugin { let versions = releases .into_iter() .map(|r| r.tag_name) + .map(|r| { + if r == "master" { + "ref:master".to_string() + } else { + r + } + }) .unique() .sorted_by_cached_key(|s| (Versioning::new(s), s.to_string())) .collect();