jdx / mise

dev tools, env vars, task runner
https://mise.jdx.dev
MIT License
9.97k stars 286 forks source link

Why is there an extra `.z` after the version number? #1915

Closed rakuyoMo closed 6 months ago

rakuyoMo commented 6 months ago

Describe the bug

image

I have a self-developed asdf plugin: RakuyoKit/asdf-swift-style-guide. It is a package of RakuyoKit/swift, and the plug-in internally downloads files from RakuyoKit/swift.

I wish to install version 1.1.0 of it as shown. There were no problems at first until 1.1.0.z appeared. It broke version delivery, causing the script to not find the correct download file.

To Reproduce Please refer to the configuration file as shown in the figure. According to this configuration file, you may be able to reproduce this problem.

Expected behavior I'm curious as to what causes .z to appear. Logically speaking, it should be the version number I passed in.

mise doctor output

➜ lenticular-stickers-ios git:(feature/update-plugin) ✗ mise doctor version: 2024.4.1 macos-arm64 (d3579eb 2024-04-08) activated: yes shims_on_path: no

build_info: Target: aarch64-apple-darwin Features: DEFAULT, NATIVE_TLS, OPENSSL Built: Mon, 8 Apr 2024 00:25:28 +0000 Rust Version: rustc 1.77.1 (7cf61ebde 2024-03-27) Profile: release

shell: /bin/zsh zsh 5.9 (x86_64-apple-darwin23.0)

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

config_files: ~/.config/mise/config.toml ~/Documents/WorkSpace/Rakuyo/LenticularStickers/lenticular-stickers-ios/.mise.toml

plugins: bun (core) deno (core) go (core) java (core) node (core) pnpm https://github.com/jonathanmorley/asdf-pnpm.git#305baff python (core) ruby (core) shellcheck https://github.com/luizm/asdf-shellcheck.git#780d78d shfmt https://github.com/luizm/asdf-shfmt.git#a42c5ff sourcedocs https://github.com/tuist/asdf-sourcedocs.git#ff81305 swift-style-guide https://github.com/RakuyoKit/asdf-swift-style-guide.git#7c65732 swiftformat https://github.com/younke/asdf-swiftformat.git#8f0e34d swiftgen https://github.com/younke/asdf-swiftgen.git#072ce84 swiftlint https://github.com/klundberg/asdf-swiftlint.git#79f2c6e tuist https://github.com/asdf-community/asdf-tuist.git#6bfab6d

toolset: swift-style-guide@1.1.0.z
tuist@4.9.0
swiftlint@0.54.0
swiftformat@0.53.7
swiftgen@6.6.3

env_vars: MISE_SHELL=zsh

settings: activate_aggressive = false all_compile = false always_keep_download = false always_keep_install = false asdf_compat = false cargo_binstall = true color = true disable_default_shorthands = false disable_tools = [] experimental = false 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 jobs = 4 legacy_version_file = true legacy_version_file_disable_tools = [] node_compile = false not_found_auto_install = true paranoid = false plugin_autoupdate_last_check_duration = "7d" python_compile = false python_default_packages_file = "/Users/rakuyo/.default-python-packages" python_pyenv_repo = "https://github.com/pyenv/pyenv.git" raw = false trusted_config_paths = [] quiet = false verbose = false yes = false ci = false debug = false trace = false log_level = "info" python_venv_auto_create = false

[status] missing_tools = "if_other_versions_installed" show_env = false show_tools = false

1 problem found:

  1. new mise version 2024.4.5 available, currently on 2024.4.1
rakuyoMo commented 6 months ago

I found that after upgrading the version of tools.swift-style-guide to 1.1.1 (or higher), there is no .z anymore.

It seems like it's my own problem, although I still don't have a clue... I'll close this issue unless it happens again later.