jdx / mise

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

`mise install` deletes Gemfile.lock #3149

Closed schneiderandre closed 3 days ago

schneiderandre commented 3 days ago

Describe the bug When running mise install with experimental settings enabled, the Gemfile.lock gets deleted.

To Reproduce

mkdir Folder
cd Folder
touch Gemfile
touch Gemfile.lock
mise settings add experimental true
mise install

Expected behavior Gemfile.lock does not get deleted.

mise doctor output

version: 2024.11.23 macos-arm64 (abf7a53 2024-11-21)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Thu, 21 Nov 2024 22:25:35 +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
  ~/Developer/Folder/Gemfile

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

plugins:
  create-dmg   https://github.com/tuist/asdf-create-dmg.git#de7c6c1
  git-cliff    https://github.com/jylenhof/asdf-git-cliff.git#f274b35
  pnpm         https://github.com/jonathanmorley/asdf-pnpm.git#85221d3
  sourcedocs   https://github.com/tuist/asdf-sourcedocs#1d8b6b7
  sourcery     https://github.com/younke/asdf-sourcery.git#1ddd8f1
  swiftformat  https://github.com/younke/asdf-swiftformat.git#ab1f91f
  swiftgen     https://github.com/younke/asdf-swiftgen.git#072ce84
  swiftlint    https://github.com/klundberg/asdf-swiftlint.git#447f94c
  tuist        https://github.com/asdf-community/asdf-tuist.git#44c87b2

toolset:

env_vars:
  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 = false
  pin = false
  plugin_autoupdate_last_check_duration = "7d"
  quiet = false
  raw = false
  trace = false
  trusted_config_paths = []
  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 = false

  [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