Repository navigation
mise up reports "All tools are up to date" for letter-suffixed versions (tmux 3.7b -> 3.7c) #13116
Describe the bugTools whose versions use a trailing-letter suffix — tmux With Steps to reproducemise:
Meanwhile Expected behavior
Root cause
pub fn is_outdated_version(current: &str, latest: &str) -> bool {
if let (Some(c), Some(l)) = (Version::new(current), Version::new(latest)) {
c.lt(&l)
} else {
current != latest
}
}
Minimal repro (the same crate mise uses): use versions::Version;
fn main() {
println!("{:?}", Version::new("3.7b").cmp(&Version::new("3.7c"))); // Equal
println!("{}", Version::new("3.7b") == Version::new("3.7c")); // false
}
Workaround
UpdateVerified with the actual crate versions (Rust repro using
So the upstream fix already landed in v8; mise likely only needs to bump the dependency. Filed upstream as fosskers/versions#87. Update 2This is already a known, fixed crate bug.
|
Replies: 1 comment
|
Thanks for the detailed report and upstream research. I confirmed the v7 comparison bug and opened #13119 to update The PR includes regression coverage for both directions: AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable. |
Thanks for the detailed report and upstream research. I confirmed the v7 comparison bug and opened #13119 to update
versionsto v8.The PR includes regression coverage for both directions:
3.7b→3.7cis outdated, while3.7c→3.7bis not. I used the dependency fix rather than the proposed!c.eq(&l) && c.le(&l)guard because v7 can report the parsed values as order-equal in both directions, which would risk treating a downgrade as an upgrade.AI-assisted — Tool: Codex; model: openai/gpt-5; version: unavailable.