`mise install` ignores version in lockfile
Closed this issue · 5 comments
powerman commented
Describe the bug
Mise installs latest version, ignoring version in lockfile.
To Reproduce
$ mkdir mise-ignore-lockfile
$ cd mise-ignore-lockfile
$ cat >mise.toml <<'EOF'
[settings]
experimental = true
lockfile = true
[tools]
'ubi:JohnnyMorganz/stylua' = 'latest'
EOF
$ cat >mise.lock <<'EOF'
[tools]
"ubi:JohnnyMorganz/stylua" = "0.20.0"
EOF
$ mise ls ubi:JohnnyMorganz/stylua
Tool Version Config Source Requested
ubi:JohnnyMorganz/stylua 2.0.1 (missing) ~/tmp/mise-ignore-lockfile/mise.toml latest
$ mise i
mise Installed binary into /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1/bin/stylua
mise ubi:JohnnyMorganz/stylua@2.0.1 ✓ installed
$
Expected behavior
Mise should install ubi:JohnnyMorganz/stylua@0.20.0
, not 2.0.1
.
mise doctor
output
version: 2024.11.16 linux-x64 (d3ef69e 2024-11-18)
activated: yes
shims_on_path: no
build_info:
Target: x86_64-unknown-linux-gnu
Features: DEFAULT, NATIVE_TLS, OPENSSL
Built: Mon, 18 Nov 2024 12:24:02 +0000
Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
Profile: release
shell:
/bin/zsh
zsh 5.9 (x86_64-pc-linux-gnu)
dirs:
data: ~/.local/share/mise
config: ~/.config/mise
cache: ~/.cache/mise
state: ~/.local/state/mise
shims: ~/.local/share/mise/shims
config_files:
~/.config/mise/config.toml
~/tmp/mise-ignore-lockfile/mise.toml
backends:
aqua
asdf
cargo
core
go
npm
pipx
spm
ubi
vfox
unknown
plugins:
git-subrepo git@github.com:powerman/asdf-git-subrepo.git#560acd9
jq ssh://git@github.com/mise-plugins/asdf-jq.git#6d86d19
lua ssh://git@github.com/powerman/asdf-lua#e0c15ea
neovim ssh://git@github.com/powerman/asdf-neovim#d6118ad
yamlfmt ssh://git@github.com/mise-plugins/asdf-yamlfmt.git#c5760c1
toolset:
ubi:JohnnyMorganz/stylua@2.0.1
ubi:jdx/usage@1.3.2
ubi:watchexec/watchexec@2.2.0
git-subrepo@0.4.9
ubi:aquaproj/aqua@2.37.2
ubi:go-task/task@latest (missing)
go:github.com/oklog/ulid/v2/cmd/ulid@2.1.0
ubi:santhosh-tekuri/jsonschema@6.0.1
ubi:bronze1man/yaml2json@1.3.3
ubi:mikefarah/yq@4.44.5
ubi:fullstorydev/grpcui@1.4.1
ubi:fullstorydev/grpcurl@1.9.1
ubi:ktr0731/evans@0.10.11
pipx:a13xp0p0v/kernel-hardening-checker@latest
go:golang.org/x/review/git-codereview@1.13.0
ubi:ankitpokhrel/jira-cli@1.5.2
ubi:noahgorstein/jqp@0.7.0
ubi:cespare/reflex@0.3.1
ubi:jondot/goweight@1.0.5
ubi:kubernetes-sigs/kind@0.25.0
ubi:kubernetes/minikube@1.34.0
go:github.com/bernardo-bruning/ollama-copilot@0.2.0
ubi:sigoden/aichat@0.23.0
pipx:aider-chat@0.63.1
ubi:plandex-ai/plandex@cli/v1.1.1
npm:rag-crawler@1.5.0
ubi:magefile/mage@1.15.0
go:github.com/erning/gorun@latest
go:golang.org/x/pkgsite/cmd/pkgsite@latest
go:golang.org/x/tools/cmd/godoc@0.27.0
go:golang.org/x/tools/cmd/gonew@0.27.0
go:github.com/rogpeppe/gohack@1.0.2
ubi:oligot/go-mod-upgrade@0.10.0
ubi:psampaz/go-mod-outdated@0.9.0
ubi:uber-go/gopatch@0.4.0
go:golang.org/x/tools/cmd/eg@0.27.0
go:rsc.io/rf@latest
go:github.com/quasilyte/gogrep/cmd/gogrep@0.5.0
go:golang.org/x/tools/cmd/go-contrib-init@0.27.0
go:github.com/josharian/impl@1.4.0
go:github.com/koron/iferr@latest
go:github.com/fatih/gomodifytags@1.17.0
go:github.com/davidrjenni/reftools/cmd/fillswitch@latest
go:github.com/davidrjenni/reftools/cmd/fillstruct@latest
go:github.com/maruel/panicparse/v2/cmd/pp@2.3.1
go:github.com/smartystreets/goconvey@1.8.1
go:golang.org/x/perf/cmd/benchstat@latest
env_vars:
MISE_LOG_FILE=~/.local/share/mise.log
MISE_LOG_FILE_LEVEL=info
MISE_SHELL=zsh
settings:
activate_aggressive = false
all_compile = false
always_keep_download = false
always_keep_install = false
asdf_compat = false
cache_prune_age = "30d"
ci = false
color = true
debug = false
disable_backends = []
disable_default_registry = false
disable_hints = []
disable_tools = []
experimental = true
fetch_remote_versions_cache = "1h"
fetch_remote_versions_timeout = "10s"
go_default_packages_file = "~/.default-go-packages"
go_download_mirror = "https://dl.google.com/go"
go_repo = "https://github.com/golang/go"
go_set_gopath = false
go_set_goroot = true
go_skip_checksum = false
http_timeout = "30s"
jobs = 4
legacy_version_file = true
legacy_version_file_disable_tools = []
libgit2 = true
lockfile = true
log_level = "info"
not_found_auto_install = true
paranoid = true
pin = false
plugin_autoupdate_last_check_duration = "7d"
quiet = false
raw = false
task_timings = false
trace = false
trusted_config_paths = [
"~/.config/mise/config.toml",
"~/proj/",
]
unix_default_file_shell_args = ["sh"]
unix_default_inline_shell_args = [
"sh",
"-c",
]
use_file_shell_for_executable_tasks = false
use_versions_host = true
verbose = false
windows_default_file_shell_args = [
"cmd",
"/c",
]
windows_default_inline_shell_args = [
"cmd",
"/c",
]
windows_executable_extensions = [
"exe",
"bat",
"cmd",
"com",
"ps1",
"vbs",
]
yes = false
[cargo]
binstall = true
[node]
[npm]
bun = false
[pipx]
uvx = true
[python]
default_packages_file = "~/.default-python-packages"
pyenv_repo = "https://github.com/pyenv/pyenv.git"
venv_auto_create = false
venv_stdlib = false
[ruby]
default_packages_file = "~/.default-gems"
ruby_build_repo = "https://github.com/rbenv/ruby-build.git"
ruby_install = false
ruby_install_repo = "https://github.com/postmodern/ruby-install.git"
[status]
missing_tools = "if_other_versions_installed"
show_env = false
show_tools = false
No warnings found
No problems found
Additional context
TRACE 1 [src/cli/mod.rs:228] run logger init
DEBUG 1 [src/cli/mod.rs:234] ARGS: mise i --trace
TRACE 1 [src/cli/mod.rs:127] run install
TRACE 1 [src/config/mod.rs:81] load start
TRACE 1 [src/backend/mod.rs:54] load_tools start
TRACE 1 [src/backend/mod.rs:57] load_tools core
TRACE 1 [src/toolset/install_state.rs:35] init_plugins start
TRACE 1 [src/toolset/install_state.rs:40] init_plugins git-subrepo
TRACE 1 [src/toolset/install_state.rs:40] init_plugins jq
TRACE 1 [src/toolset/install_state.rs:40] init_plugins lua
TRACE 1 [src/toolset/install_state.rs:40] init_plugins neovim
TRACE 1 [src/toolset/install_state.rs:40] init_plugins yamlfmt
TRACE 1 [src/toolset/install_state.rs:51] init_plugins done
TRACE 1 [src/toolset/install_state.rs:61] init_tools start
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/pipx-a13xp0p0v-kernel-hardening-checker/.mise.backend
TRACE 6 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-kampfkarren-selene/.mise.backend
TRACE 13 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-psampaz-go-mod-outdated/.mise.backend
TRACE 12 [src/file.rs:161] cat ~/.local/share/mise/installs/pipx-aider-chat/.mise.backend
TRACE 10 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-davidrjenni-reftools-cmd-fillstruct/.mise.backend
TRACE 19 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-jgm-pandoc/.mise.backend
TRACE 15 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-bernardo-bruning-ollama-copilot/.mise.backend
TRACE 9 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-fatih-gomodifytags/.mise.backend
TRACE 16 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ktr0731-evans/.mise.backend
TRACE 24 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-cespare-reflex/.mise.backend
TRACE 20 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-fullstorydev-grpcurl/.mise.backend
TRACE 23 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ankitpokhrel-jira-cli/.mise.backend
TRACE 8 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ast-grep-ast-grep/.mise.backend
TRACE 7 [src/file.rs:161] cat ~/.local/share/mise/installs/task/.mise.backend
TRACE 26 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-davidrjenni-reftools-cmd-fillswitch/.mise.backend
TRACE 4 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-rogpeppe-gohack/.mise.backend
TRACE 25 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-erning-gorun/.mise.backend
TRACE 18 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-fullstorydev-grpcui/.mise.backend
TRACE 21 [src/file.rs:161] cat ~/.local/share/mise/installs/watchexec/.mise.backend
TRACE 22 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-uber-go-gopatch/.mise.backend
TRACE 3 [src/toolset/install_state.rs:93] init_tools git-subrepo
TRACE 17 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-bronze1man-yaml2json/.mise.backend
TRACE 3 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-oligot-go-mod-upgrade/.mise.backend
TRACE 14 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-magefile-mage/.mise.backend
TRACE 11 [src/registry.rs:31] disable_backends
TRACE 11 [src/registry.rs:35] disable_backends
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-plandex-ai-plandex/.mise.backend
TRACE 11 [src/toolset/install_state.rs:93] init_tools go
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-kubernetes-minikube/.mise.backend
TRACE 11 [src/file.rs:161] cat ~/.local/share/mise/installs/shellcheck/.mise.backend
TRACE 10 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-maruel-panicparse-v2-cmd-pp/.mise.backend
TRACE 13 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-santhosh-tekuri-jsonschema/.mise.backend
TRACE 6 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-jondot-goweight/.mise.backend
TRACE 19 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-oklog-ulid-v2-cmd-ulid/.mise.backend
TRACE 10 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-godoc/.mise.backend
TRACE 13 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-sigoden-aichat/.mise.backend
TRACE 11 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-josharian-impl/.mise.backend
TRACE 9 [src/file.rs:161] cat ~/.local/share/mise/installs/usage/.mise.backend
TRACE 6 [src/file.rs:161] cat ~/.local/share/mise/installs/yq/.mise.backend
TRACE 16 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-quasilyte-gogrep-cmd-gogrep/.mise.backend
TRACE 12 [src/toolset/install_state.rs:93] init_tools pipx:aider-chat
TRACE 13 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-eg/.mise.backend
TRACE 11 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-koron-iferr/.mise.backend
TRACE 19 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-aquaproj-aqua/.mise.backend
TRACE 8 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-review-git-codereview/.mise.backend
TRACE 23 [src/file.rs:161] cat ~/.local/share/mise/installs/kind/.mise.backend
TRACE 11 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-perf-cmd-benchstat/.mise.backend
TRACE 26 [src/file.rs:161] cat ~/.local/share/mise/installs/npm-rag-crawler/.mise.backend
TRACE 4 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-noahgorstein-jqp/.mise.backend
TRACE 10 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-gonew/.mise.backend
TRACE 6 [src/toolset/install_state.rs:93] init_tools yq
TRACE 20 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-pkgsite-cmd-pkgsite/.mise.backend
TRACE 12 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-go-contrib-init/.mise.backend
TRACE 13 [src/toolset/install_state.rs:93] init_tools lua
TRACE 24 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-smartystreets-goconvey/.mise.backend
TRACE 16 [src/file.rs:161] cat ~/.local/share/mise/installs/go-rsc-io-rf/.mise.backend
TRACE 7 [src/file.rs:161] cat ~/.local/share/mise/installs/neovim/.mise.backend
TRACE 15 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-mgechev-revive/.mise.backend
TRACE 9 [src/toolset/install_state.rs:93] init_tools usage
TRACE 7 [src/toolset/install_state.rs:93] init_tools neovim
TRACE 1 [src/toolset/install_state.rs:100] init_tools tool_tools
TRACE 1 [src/toolset/install_state.rs:122] init_tools plugins
TRACE 1 [src/toolset/install_state.rs:124] init_tools done
TRACE 1 [src/backend/mod.rs:74] load_tools asdf
TRACE 1 [src/backend/mod.rs:86] load_tools vfox
TRACE 1 [src/backend/mod.rs:96] load_tools install_state
TRACE 1 [src/backend/mod.rs:104] load_tools done
TRACE 1 [src/config/mod.rs:83] load legacy_files
TRACE 1 [src/config/mod.rs:89] load config_filenames
TRACE 1 [src/config/mod.rs:91] load config_paths
TRACE 1 [src/config/mod.rs:92] config_paths: ["/home/powerman/tmp/mise-ignore-lockfile/mise.toml", "/home/powerman/.config/mise/config.toml"]
TRACE 3 [src/file.rs:161] cat ~/.local/state/mise/trusted-configs/mise-ignore-lockfile-mise.hash
TRACE 3 [src/file.rs:31] open ~/tmp/mise-ignore-lockfile/mise.toml
TRACE 3 [src/file.rs:161] cat ~/tmp/mise-ignore-lockfile/mise.toml
TRACE 3 [src/config/config_file/mise_toml.rs:92] parsing: ~/tmp/mise-ignore-lockfile/mise.toml
TRACE 4 [src/file.rs:161] cat ~/.config/mise/config.toml
TRACE 4 [src/config/config_file/mise_toml.rs:92] parsing: ~/.config/mise/config.toml
TRACE 1 [src/config/mod.rs:94] load config_files
TRACE 1 [src/config/mod.rs:103] load build
TRACE 1 [src/config/mod.rs:106] load validate
TRACE 1 [src/config/mod.rs:109] load all aliases
TRACE 1 [src/config/mod.rs:112] config: Config {
Config Files: [
"~/tmp/mise-ignore-lockfile/mise.toml",
"~/.config/mise/config.toml",
],
}
TRACE 1 [src/config/mod.rs:118] load done
TRACE 1 [src/toolset/tool_request_set.rs:158] tool_request_set::build
DEBUG 1 [src/toolset/mod.rs:185] install_versions: ubi:plandex-ai/plandex@cli/v1 ubi:JohnnyMorganz/stylua@latest
TRACE 27 [src/file.rs:161] cat ~/.config/mise/config.lock
TRACE 28 [src/file.rs:161] cat ~/tmp/mise-ignore-lockfile/mise.lock
TRACE 28 [src/cache.rs:129] reading ~/.cache/mise/ubi-johnny-morganz-stylua/remote_versions-d5d39.msgpack.z
INFO 28 [src/ui/progress_report.rs:156] ubi:JohnnyMorganz/stylua@2.0.1 installing
TRACE 28 [src/file.rs:77] rm ~/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1
TRACE 28 [src/file.rs:180] mkdir -p ~/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1
TRACE 28 [src/file.rs:180] mkdir -p ~/.local/share/mise/downloads/ubi-johnny-morganz-stylua/2.0.1
TRACE 28 [src/file.rs:180] mkdir -p ~/.cache/mise/ubi-johnny-morganz-stylua/2.0.1
DEBUG 28 [src/http.rs:58] GET https://api.github.com/repos/JohnnyMorganz/stylua/releases/tags/2.0.1
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.9/src/connect.rs:500] starting new connection: https://api.github.com/
DEBUG 28 [src/http.rs:66] GET https://api.github.com/repos/JohnnyMorganz/stylua/releases/tags/2.0.1 404 Not Found
DEBUG 28 [src/backend/ubi.rs:70] Failed to get release for ubi:JohnnyMorganz/stylua@2.0.1, trying with 'v' prefix: HTTP status client error (404 Not Found) for url (https://api.github.com/repos/JohnnyMorganz/stylua/releases/tags/2.0.1)
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:319] Parsed --project JohnnyMorganz/stylua = JohnnyMorganz / stylua
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:339] exe name = stylua
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:353] install path = /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1/bin/stylua
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:372] adding GitHub token to GitHub requests
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.9/src/connect.rs:500] starting new connection: https://api.github.com/
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:35] filtering out assets that do not have a valid extension
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:343] current OS = linux
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:88] matching assets against OS using (?i:(?:\b|_)linux(?:\b|_|32|64))
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-linux-aarch64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:98] matches our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-linux-x86_64-musl.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:98] matches our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-linux-x86_64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:98] matches our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-macos-aarch64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:101] does not match our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-macos-x86_64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:101] does not match our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:95] matching OS against asset name = stylua-windows-x86_64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:101] does not match our OS
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:373] current CPU architecture = x86_64
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:110] matching assets against CPU architecture using (?ix)
(?:
\b
|
_
)
(?:
386 | i586 | i686
|
x86[_-]32
|
x86[_-]64
|
x64
|
amd64
|
linux64
|
# This is gross but the OS matcher will reject this on non-Windows
# platforms.
win64
)
(?:
\b
|
_
)
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:129] matching CPU architecture against asset name = stylua-linux-aarch64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:137] does not match our CPU architecture
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:129] matching CPU architecture against asset name = stylua-linux-x86_64-musl.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:134] matches our CPU architecture
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:129] matching CPU architecture against asset name = stylua-linux-x86_64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:134] matches our CPU architecture
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:245] found multiple candidate assets, filtering for 64-bit binaries in ["stylua-linux-x86_64-musl.zip", "stylua-linux-x86_64.zip"]
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:259] found 64-bit assets: stylua-linux-x86_64-musl.zip,stylua-linux-x86_64.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:218] cannot disambiguate multiple asset names, picking the first one after sorting by name
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/picker.rs:82] picked asset from matches named stylua-linux-x86_64-musl.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:412] picked asset named stylua-linux-x86_64-musl.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:417] downloading asset from https://api.github.com/repos/JohnnyMorganz/StyLua/releases/assets/207391631
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.9/src/connect.rs:500] starting new connection: https://api.github.com/
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.9/src/async_impl/client.rs:2725] redirecting 'https://api.github.com/repos/JohnnyMorganz/StyLua/releases/assets/207391631' to 'https://objects.githubusercontent.com/github-production-release-asset-2e65be/321792527/0bd83a46-f3ae-44ec-bcc8-daeaeb3c23f4?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=releaseassetproduction%2F20241118%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20241118T204449Z&X-Amz-Expires=300&X-Amz-Signature=c2775f14f42fc1451ba70cbf5cdaed666d04c2fba767281442a1b78f43b22966&X-Amz-SignedHeaders=host&response-content-disposition=attachment%3B%20filename%3Dstylua-linux-x86_64-musl.zip&response-content-type=application%2Foctet-stream'
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/reqwest-0.12.9/src/connect.rs:500] starting new connection: https://objects.githubusercontent.com/
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/lib.rs:436] archive path is /tmp/.tmpq0e26h/stylua-linux-x86_64-musl.zip
DEBUG 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/installer.rs:69] extracting binary from zip file
INFO 28 [/cargo/registry/src/index.crates.io-6f17d22bba15001f/ubi-0.2.2/src/installer.rs:34] Installed binary into /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1/bin/stylua
TRACE 28 [src/file.rs:155] write ~/.local/share/mise/installs/ubi-johnny-morganz-stylua/.mise.backend
TRACE 28 [src/file.rs:53] rm -rf ~/.local/share/mise/downloads/ubi-johnny-morganz-stylua/2.0.1
TRACE 28 [src/file.rs:225] touch /home/powerman/.local/share/mise
TRACE 28 [src/file.rs:225] touch /home/powerman/tmp/mise-ignore-lockfile/mise.toml
TRACE 28 [src/file.rs:225] touch /home/powerman/.config/mise/config.toml
TRACE 28 [src/file.rs:77] rm ~/.cache/mise/ubi-johnny-morganz-stylua/2.0.1/incomplete
INFO 28 [src/ui/progress_report.rs:164] ubi:JohnnyMorganz/stylua@2.0.1 ✓ installed
TRACE 1 [src/toolset/mod.rs:250] install: resolving
TRACE 5 [src/backend/mod.rs:54] load_tools start
TRACE 5 [src/backend/mod.rs:57] load_tools core
TRACE 5 [src/toolset/install_state.rs:35] init_plugins start
TRACE 5 [src/toolset/install_state.rs:40] init_plugins git-subrepo
TRACE 5 [src/toolset/install_state.rs:40] init_plugins jq
TRACE 5 [src/toolset/install_state.rs:40] init_plugins lua
TRACE 5 [src/toolset/install_state.rs:40] init_plugins neovim
TRACE 5 [src/toolset/install_state.rs:40] init_plugins yamlfmt
TRACE 5 [src/toolset/install_state.rs:51] init_plugins done
TRACE 5 [src/toolset/install_state.rs:61] init_tools start
TRACE 5 [src/toolset/install_state.rs:93] init_tools git-subrepo
TRACE 5 [src/toolset/install_state.rs:93] init_tools go
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-bernardo-bruning-ollama-copilot/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-davidrjenni-reftools-cmd-fillstruct/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-davidrjenni-reftools-cmd-fillswitch/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-erning-gorun/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-fatih-gomodifytags/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-josharian-impl/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-koron-iferr/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-maruel-panicparse-v2-cmd-pp/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-mgechev-revive/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-oklog-ulid-v2-cmd-ulid/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-quasilyte-gogrep-cmd-gogrep/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-rogpeppe-gohack/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-github-com-smartystreets-goconvey/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-perf-cmd-benchstat/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-pkgsite-cmd-pkgsite/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-review-git-codereview/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-eg/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-go-contrib-init/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-godoc/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-golang-org-x-tools-cmd-gonew/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/go-rsc-io-rf/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/kind/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools lua
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/neovim/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools neovim
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/npm-rag-crawler/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/pipx-a13xp0p0v-kernel-hardening-checker/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/pipx-aider-chat/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools pipx:aider-chat
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/shellcheck/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/task/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ankitpokhrel-jira-cli/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-aquaproj-aqua/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ast-grep-ast-grep/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-bronze1man-yaml2json/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-cespare-reflex/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-fullstorydev-grpcui/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-fullstorydev-grpcurl/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-jgm-pandoc/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-johnny-morganz-stylua/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools ubi:JohnnyMorganz/stylua
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-jondot-goweight/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-kampfkarren-selene/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-ktr0731-evans/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-kubernetes-minikube/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-magefile-mage/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-noahgorstein-jqp/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-oligot-go-mod-upgrade/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-plandex-ai-plandex/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-psampaz-go-mod-outdated/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-santhosh-tekuri-jsonschema/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-sigoden-aichat/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/ubi-uber-go-gopatch/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/usage/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools usage
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/watchexec/.mise.backend
TRACE 5 [src/file.rs:161] cat ~/.local/share/mise/installs/yq/.mise.backend
TRACE 5 [src/toolset/install_state.rs:93] init_tools yq
TRACE 5 [src/toolset/install_state.rs:100] init_tools tool_tools
TRACE 5 [src/toolset/install_state.rs:122] init_tools plugins
TRACE 5 [src/toolset/install_state.rs:124] init_tools done
TRACE 5 [src/backend/mod.rs:74] load_tools asdf
TRACE 5 [src/backend/mod.rs:86] load_tools vfox
TRACE 5 [src/backend/mod.rs:96] load_tools install_state
TRACE 5 [src/backend/mod.rs:104] load_tools done
TRACE 1 [src/toolset/mod.rs:254] install: reshimming
TRACE 10 [src/cache.rs:129] reading ~/.cache/mise/git-subrepo/0.4.9/list_bin_paths-d5d39.msgpack.z
TRACE 25 [src/cache.rs:129] reading ~/.cache/mise/neovim/0.10.2/list_bin_paths-d5d39.msgpack.z
TRACE 12 [src/cache.rs:129] reading ~/.cache/mise/lua/5.1.5/list_bin_paths-d5d39.msgpack.z
TRACE 20 [src/cache.rs:129] reading ~/.cache/mise/neovim/0.9.0/list_bin_paths-d5d39.msgpack.z
TRACE 11 [src/cache.rs:129] reading ~/.cache/mise/neovim/0.9.5/list_bin_paths-d5d39.msgpack.z
TRACE 1 [src/shims.rs:176] get_shim_diffs sizes: (1,0)
TRACE 1 [src/file.rs:301] ln -sf /home/powerman/.local/bin/mise /home/powerman/.local/share/mise/shims/stylua
TRACE 1 [src/file.rs:337] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/latest
TRACE 1 [src/file.rs:301] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/latest
TRACE 1 [src/file.rs:337] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2
TRACE 1 [src/file.rs:301] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2
TRACE 1 [src/file.rs:337] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0
TRACE 1 [src/file.rs:301] ln -sf ./2.0.1 /home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0
TRACE 1 [src/toolset/mod.rs:257] install: done
DEBUG 1 [src/toolset/mod.rs:267] [ubi:JohnnyMorganz/stylua@2.0.1] list_bin_paths: ["/home/powerman/.local/share/mise/installs/ubi-johnny-morganz-stylua/2.0.1/bin"]
DEBUG 1 [src/toolset/mod.rs:267] [ubi:plandex-ai/plandex@cli/v1.1.1] list_bin_paths: ["/home/powerman/.local/share/mise/installs/ubi-plandex-ai-plandex/cli-v1.1.1/bin"]
TRACE 1 [src/config/mod.rs:81] load start
TRACE 1 [src/config/mod.rs:83] load legacy_files
TRACE 1 [src/config/mod.rs:89] load config_filenames
TRACE 1 [src/config/mod.rs:91] load config_paths
TRACE 1 [src/config/mod.rs:92] config_paths: ["/home/powerman/tmp/mise-ignore-lockfile/mise.toml", "/home/powerman/.config/mise/config.toml"]
TRACE 3 [src/file.rs:161] cat ~/tmp/mise-ignore-lockfile/mise.toml
TRACE 4 [src/file.rs:161] cat ~/.config/mise/config.toml
TRACE 3 [src/config/config_file/mise_toml.rs:92] parsing: ~/tmp/mise-ignore-lockfile/mise.toml
TRACE 4 [src/config/config_file/mise_toml.rs:92] parsing: ~/.config/mise/config.toml
TRACE 1 [src/config/mod.rs:94] load config_files
TRACE 1 [src/config/mod.rs:103] load build
TRACE 1 [src/config/mod.rs:106] load validate
TRACE 1 [src/config/mod.rs:109] load all aliases
TRACE 1 [src/config/mod.rs:112] config: Config {
Config Files: [
"~/tmp/mise-ignore-lockfile/mise.toml",
"~/.config/mise/config.toml",
],
}
TRACE 1 [src/config/mod.rs:118] load done
TRACE 1 [src/toolset/builder.rs:47] toolset::builder::build
DEBUG 1 [src/lockfile.rs:74] updating 2 lockfiles
TRACE 1 [src/lockfile.rs:84] updating 46 tools in lockfile ~/.config/mise/config.lock
TRACE 1 [src/file.rs:161] cat ~/.config/mise/config.lock
TRACE 1 [src/file.rs:155] write ~/.config/mise/config.lock
TRACE 1 [src/lockfile.rs:84] updating 1 tools in lockfile ~/tmp/mise-ignore-lockfile/mise.lock
TRACE 1 [src/file.rs:161] cat ~/tmp/mise-ignore-lockfile/mise.lock
TRACE 1 [src/file.rs:155] write ~/tmp/mise-ignore-lockfile/mise.lock
TRACE 1 [src/main.rs:77] main done
powerman commented
@jdx Please reopen, this wasn't fixed:
$ mise version
2024.11.20 linux-x64 (e07385e 2024-11-21)
$ cd mise-ignore-lockfile
mise WARN missing: ubi:JohnnyMorganz/stylua@0.20.0
$ cat mise.lock
[tools]
"ubi:JohnnyMorganz/stylua" = "0.20.0"
$ cat mise.toml
[settings]
experimental = true
lockfile = true
[tools]
'ubi:JohnnyMorganz/stylua' = 'latest'
$ mise i
$ mise which stylua
mise ERROR stylua is a mise bin however it is not currently active. Use `mise use` to activate it in this directory.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
$ mise where stylua
mise ERROR stylua@latest not installed
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information
$ stylua --version
stylua 0.20.0
$ which stylua
/home/powerman/.local/share/nvim/mason/bin/stylua
$ mise ls ubi:JohnnyMorganz/stylua
Tool Version Config Source Requested
ubi:JohnnyMorganz/stylua 0.20.0 (missing) ~/tmp/mise-ignore-lockfile/mise.toml latest
ubi:JohnnyMorganz/stylua 2.0.1
$ mise install --verbose
DEBUG ARGS: mise install --verbose
DEBUG config: ~/tmp/mise-ignore-lockfile/mise.toml
DEBUG config: ~/.config/mise/config.toml
DEBUG install_versions: ubi:plandex-ai/plandex@cli/v1
DEBUG [ubi:plandex-ai/plandex@cli/v1.1.1] list_bin_paths: ["/home/powerman/.local/share/mise/installs/ubi-plandex-ai-plandex/cli-v1.1.1/bin"]
DEBUG config: ~/tmp/mise-ignore-lockfile/mise.toml
DEBUG config: ~/.config/mise/config.toml
DEBUG updating 2 lockfiles
$
jdx commented
seems to be working on my end:
kbxcrz553xn7jwzymmpt_wqr0000gn/T/tmp.draj1CgJeW ❯ mise -v
2024.11.20 macos-arm64 (2024-11-21)
kbxcrz553xn7jwzymmpt_wqr0000gn/T/tmp.draj1CgJeW ❯ mise ls ubi:JohnnyMorganz/stylua
Tool Version Config Source Requested
ubi:JohnnyMorganz/stylua 0.20.0 (outdated) /private/var/folders/pc/kbxcr latest
z553xn7jwzymmpt_wqr0000gn/T/t
mp.draj1CgJeW/mise.toml
kbxcrz553xn7jwzymmpt_wqr0000gn/T/tmp.draj1CgJeW ❯ cat mise.toml
[tools]
"ubi:JohnnyMorganz/stylua" = "latest"
kbxcrz553xn7jwzymmpt_wqr0000gn/T/tmp.draj1CgJeW ❯ cat mise.lock
[tools]
"ubi:JohnnyMorganz/stylua" = "0.20.0"
jdx commented
actually looking at your output it seems to be working for you as well
powerman commented
I've stylua installed by Neovim's Mason, it's in PATH after Mise dirs and shouldn't affect Mise, isn't it?
powerman commented
$ printf "%s\n" $path
/home/powerman/.local/share/aquaproj-aqua/bin
/home/powerman/.local/share/mise/installs/usage/1.3.2/bin
/home/powerman/.local/share/mise/installs/watchexec/2.2.0/bin
...
/home/powerman/.local/share/mise/installs/git-subrepo/latest/bin/lib
/home/powerman/.local/share/nvim/mason/bin
/home/powerman/.local/bin
...