Skip to content

mise rm removes/reports wrong version of tool #4081

Open
@jdx

Description

Discussed in #4080

Originally posted by scop January 13, 2025

$ grep shellcheck ~/.config/mise/config.toml 
shellcheck = "latest"
$ mise ls | grep shellcheck
shellcheck          0.9.0
shellcheck          0.10.0    ~/.config/mise/config.toml  latest
$ mise rm shellcheck@0.9.0
mise removed: shellcheck@0.9.0 from ~/.config/mise/config.toml
$ grep shellcheck ~/.config/mise/config.toml
# nothing

The output said 0.9.0 was removed from config, but actually latest was removed. In my opinion two things went wrong here:

  • the output should have said what was actually removed (it was latest, not 0.9.0)
  • nothing should have actually been removed from the config, because 0.10.0 was the version in effect, and given config of latest, it is newer than 0.9.0

mise doctor in details

version: 2025.1.6 linux-x64 (d9e6de8 2025-01-12) activated: yes shims_on_path: no

build_info:
Target: x86_64-unknown-linux-gnu
Features: DEFAULT, NATIVE_TLS, OPENSSL
Built: Sun, 12 Jan 2025 13:36:55 +0000
Rust Version: rustc 1.83.0 (90b35a623 2024-11-26)
Profile: release

shell:
/bin/bash
GNU bash, version 5.2.32(1)-release (x86_64-pc-linux-gnu)
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html

This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

dirs:
cache: ~/.cache/mise
config: ~/.config/mise
data: ~/.local/share/mise
shims: ~/.local/share/mise/shims
state: ~/.local/state/mise

config_files:
~/.config/mise/config.toml

ignored_config_files: (none)

backends:
aqua
asdf
cargo
core
dotnet
gem
go
npm
pipx
spm
ubi
vfox

plugins:
dprint https://github.com/asdf-community/asdf-dprint#45901c9
perl https://github.com/ouest/asdf-perl.git#2b4609b
php https://github.com/asdf-community/asdf-php.git#52c669a
usage https://github.com/jdx/mise-usage.git#fe3888a

toolset:
aqua:UpCloudLtd/upcloud-cli@3.14.0
aqua:astral-sh/ruff@0.9.1
aqua:astral-sh/uv@0.5.18
aqua:cli/cli@2.65.0
aqua:crate-ci/committed@1.1.5
aqua:crate-ci/typos@1.29.4
aqua:daveshanley/vacuum@0.15.3
aqua:dprint/dprint@0.48.0
aqua:evilmartians/lefthook@1.10.3
aqua:gotestyourself/gotestsum@1.12.0
aqua:gruntwork-io/terragrunt@0.72.0
aqua:hashicorp/terraform@1.10.4
aqua:hashicorp/vault@1.18.3
aqua:mvdan/sh@3.10.0
aqua:sigstore/cosign@2.4.1
aqua:snyk/cli@1.1260.0
asdf:usage@2.0.3
core:go@1.23.4
ubi:aquaproj/aqua@2.42.2
ubi:golangci/golangci-lint@1.63.4
ubi:koalaman/shellcheck@0.10.0
ubi:mikefarah/yq@4.45.1

path:
~/.local/share/mise/installs/usage/2.0.3/bin
~/.local/share/mise/installs/go/1.23.4/bin
~/.local/share/mise/installs/uv/0.5.18/uv-x86_64-unknown-linux-musl
~/.local/share/mise/installs/gotestsum/1.12.0
~/.local/share/mise/installs/typos/1.29.4
~/.local/share/mise/installs/gh/2.65.0/gh_2.65.0_linux_amd64/bin
~/.local/share/mise/installs/terraform/1.10.4
~/.local/share/mise/installs/vault/1.18.3
~/.local/share/mise/installs/shfmt/3.10.0
~/.local/share/mise/installs/terragrunt/0.72.0
~/.local/share/mise/installs/ubi-aquaproj-aqua/2.42.2/bin
~/.local/share/mise/installs/snyk/1.1260.0
~/.local/share/mise/installs/yq/4.45.1/bin
~/.local/share/mise/installs/committed/1.1.5
~/.local/share/mise/installs/cosign/2.4.1
~/.local/share/mise/installs/upctl/3.14.0
~/.local/share/mise/installs/ruff/0.9.1/ruff-x86_64-unknown-linux-musl
~/.local/share/mise/installs/lefthook/1.10.3
~/.local/share/mise/installs/vacuum/0.15.3
~/.local/share/mise/installs/golangci-lint/1.63.4/bin
~/.local/share/mise/installs/aqua-dprint-dprint/0.48.0
~/.local/share/mise/installs/shellcheck/0.10.0/bin
~/.cargo/bin
~/.local/bin
/usr/local/sbin
/usr/local/bin
/usr/sbin
/usr/bin
/sbin
/bin
/usr/games
/usr/local/games
/snap/bin
/snap/bin

env_vars:
MISE_USE_TOML=1
MISE_GO_SET_GOBIN=false
MISE_SHELL=bash

settings:

No problems found

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions