jdx / mise

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

`mise install` returns error related to lockfile #3125

Closed acoblic-zelter-crunchyroll closed 4 days ago

acoblic-zelter-crunchyroll commented 4 days ago

Describe the bug A clear and concise description of what the bug is. When attempting to run mise install tuist, I'm getting such error

mise ERROR lockfile is experimental. Enable it with `mise settings set experimental true`
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

To Reproduce

  1. Run mise install tuist with the latest mise version (2024.11.21 macos-arm64 (885516a 2024-11-21))

Expected behavior

  1. Plugin should be installed

mise doctor output

version: 2024.11.21 macos-arm64 (885516a 2024-11-21)
activated: no
shims_on_path: yes

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Thu, 21 Nov 2024 18:52:47 +0000
  Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
  Profile: release

shell:
  /bin/zsh
  zsh 5.9 (arm64-apple-darwin24.0)

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

config_files:
  ~/.config/mise/config.toml
  ~/projects/personal/cr-ios-app/.mise.toml

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

plugins:
  tuist  https://github.com/asdf-community/asdf-tuist.git#6bfab6d
mise WARN  failed to resolve toolset: [~/projects/personal/cr-ios-app/.mise.toml] tuist@4.28.1: lockfile is experimental. Enable it with `mise settings set experimental true`
The application panicked (crashed).
Message:  called `Result::unwrap()` on an `Err` value: 
   0: lockfile is experimental. Enable it with `mise settings set experimental true`

Location:
   src/config/settings.rs:332

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
Location: src/toolset/mod.rs:346

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.
adamtootle commented 4 days ago

Just had this bring several GHA runners down this afternoon. curl https://mise.run | sh seems to be the source here, assuming related to the release yesterday.

Rolling back to 2024.11.20 via

curl -L https://github.com/jdx/mise/releases/download/v2024.11.20/mise-v2024.11.20-macos-x64 > /usr/local/bin/mise
chmod +x /usr/local/bin/mise

seems stable.

adamtootle commented 4 days ago

Well, the 2024.11.22 release may address this now too. That landed while I was making my changes above.

leeadkins commented 4 days ago

@adamtootle I'm getting the exact same error on 2024.11.22 macos-x64 (6176d56 2024-11-21)

Edit: can confirm rolling back works fine.

hiltonc commented 4 days ago

I'm rolling back too, using curl https://mise.run | MISE_VERSION=v2024.11.20 sh

jdx commented 4 days ago

I tried to fix it on my phone but it didn't work, next release will fix this

jdx commented 4 days ago

you could also disable lockfile or enable experimental to fix this