-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
mise up
does not update tools to latest
#1384
Comments
that's not a bug, |
that said, there is the downside of that where you don't have This probably shouldn't be default behavior though. I'm thinking maybe something like |
I figured it might be something like that. I was looking for something like |
I'd be open to a PR for this but I think it will be a bit tricky to write. It will probably need to respect the existing specificity for the previous version, e.g.: [tools]
node = '20'
python = '3.11.0' should become: [tools]
node = '22'
python = '3.12.1' I don't think existing code does this anywhere so that would need to be written. There are edge cases like how go and erlang use "1.9" but "1.9.1" and probably a lot more where semver isn't followed or uses strange conventions. We could start with basic semver though. |
I'm currently using this script to update all plugins to their latest version, and also pin the version in the global configuration file: #!/bin/bash
plugins=$( mise ls -g --no-header | cut -d\ -f1 )
mise plugins update || exit 1
# set plugins to 'latest' so 'mise upgrade' will use newer versions
for plugin in $plugins; do
mise use -g "$plugin@latest" >/dev/null
done
mise upgrade --interactive || exit 1
# set plugins to their actual versions
for plugin in $plugins; do
mise use -g --pin "$plugin@latest"
done
mise prune Maybe |
Describe the bug
When using
mise up
I am gettingmise All tools are up to date
when I have what I consider to be out of date tools. For instance I intentional set my.mise.toml
to use an older version ofyamllint
(One minor version behind latest) and attempted to usemise up
to bump it to latest as if I had ranmise use --pin yamllint@latest
.To Reproduce
Expected behavior
I expected
yamllint
to bump to the latest version (1.33.0) as if I had ranmise use --pin yamllint@latest
.mise doctor
outputThe text was updated successfully, but these errors were encountered: