Skip to content

mise use --env env ... will create a new mise.env.toml file even if .mise.env.toml already exists #4244

Closed
@jdx

Description

Discussed in #4210

Originally posted by sgtsquiggs January 24, 2025
Reproduce:

~ 
❯ mise use --env local uv@system
mise ~/mise.local.toml tools: uv@system

~ 
❯ mv mise.local.toml .mise.local.toml

~ 
❯ mise use --env local node@system
mise ~/mise.local.toml tools: node@system

doctor:

version: 2025.1.14 macos-arm64 (daa75da 2025-01-24)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Fri, 24 Jan 2025 17:08:10 +0000
  Rust Version: rustc 1.84.0 (9fc6b4312 2025-01-07)
  Profile: release

shell:
  /opt/homebrew/bin/fish
  fish, version 3.7.1

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

ignored_config_files: (none)

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

plugins:
  antlr4         ssh://git@github.com/thedavemarshall/asdf-antlr4.git#865823b
  awscli         ssh://git@github.com/MetricMike/asdf-awscli.git#c26bbb4
  buf            ssh://git@github.com/truepay/asdf-buf.git#6c27312
  direnv         ssh://git@github.com/asdf-community/asdf-direnv.git#951acd3
  golangci-lint  ssh://git@github.com/hypnoglow/asdf-golangci-lint.git#29fbe51
  hadolint       ssh://git@github.com/devlincashman/asdf-hadolint.git#335e230
  helm           ssh://git@github.com/Antiarchitect/asdf-helm.git#085651c
  helmfile       ssh://git@github.com/feniix/asdf-helmfile.git#818feac
  jq             ssh://git@github.com/lsanwick/asdf-jq.git#addae51
  just           ssh://git@github.com/olofvndrhr/asdf-just.git#3f907ee
  k9s            ssh://git@github.com/looztra/asdf-k9s.git#2b3af87
  kubectl        ssh://git@github.com/asdf-community/asdf-kubectl.git#2fb3b57
  pipx           ssh://git@github.com/yozachar/asdf-pipx.git#81cb547
  pnpm           ssh://git@github.com/jonathanmorley/asdf-pnpm.git#85221d3
  poetry         ssh://git@github.com/mise-plugins/mise-poetry.git#80d807b
  pre-commit     ssh://git@github.com/jonathanmorley/asdf-pre-commit.git#26bfc42
  protoc         ssh://git@github.com/paxosglobal/asdf-protoc.git#a44c5cd
  rust           ssh://git@github.com/code-lever/asdf-rust.git#95acf4f
  snyk           ssh://git@github.com/nirfuchs/asdf-snyk.git#a1357fc
  terraform      ssh://git@github.com/asdf-community/asdf-hashicorp.git#22eb1c4
  terragrunt     ssh://git@github.com/ohmer/asdf-terragrunt.git#29f2935
  tilt           ssh://git@github.com/eaceaser/asdf-tilt.git#69eac7b
  usage          ssh://git@github.com/jdx/mise-usage.git#fe3888a
  uv             ssh://git@github.com/asdf-community/asdf-uv.git#ce093c3
  yarn           ssh://git@github.com/twuni/asdf-yarn.git#376c540
  yq             ssh://git@github.com/sudermanjr/asdf-yq.git#772992f

toolset:
  asdf:awscli@2.18.15
  asdf:buf@1.45.0
  asdf:direnv@2.35.0
  asdf:golangci-lint@1.54.2
  asdf:helm@3.16.2
  asdf:helmfile@0.164.0
  asdf:just@1.25.2
  asdf:k9s@0.32.5
  asdf:kubectl@1.28.1
  asdf:pipx@1.7.1
  asdf:pnpm@8.15.9
  asdf:pre-commit@2.21.0
  asdf:protoc@28.3
  asdf:rust@1.69.0
  asdf:snyk@1.1260.0
  asdf:tilt@0.33.1
  asdf:usage@0.11.0
  asdf:yq@4.44.3
  core:go@1.21.13
  core:java@corretto-17.0.13.11.1
  core:node@18.20.4
  core:python@3.10.15
  go:google.golang.org/protobuf/cmd/protoc-gen-go@1.28.1
  https://github.com/gozer/asdf-teleport.git@16.4.2
  https://github.com/nklmilojevic/asdf-kubefwd.git@1.22.4

path:
  ~/.local/share/mise/installs/go/1.21.13/bin
  ~/.local/share/mise/installs/python/3.10.15/bin
  ~/.local/share/mise/installs/node/18.20.4/bin
  ~/.local/share/mise/installs/buf/1.45.0/bin
  ~/.local/share/mise/installs/golangci-lint/1.54.2/bin
  ~/.local/share/mise/installs/java/corretto-17.0.13.11.1/bin
  ~/.local/share/mise/installs/just/1.25.2/bin
  ~/.local/share/mise/installs/kubectl/1.28.1/bin
  ~/.local/share/mise/installs/kubefwd/1.22.4/bin
  ~/.local/share/mise/installs/pnpm/8.15.9/bin
  ~/.local/share/mise/installs/pre-commit/2.21.0/bin
  ~/.local/share/mise/installs/rust/1.69.0/bin
  ~/.local/share/mise/installs/tilt/0.33.1/bin
  ~/.local/share/mise/installs/direnv/2.35.0/bin
  ~/.local/share/mise/installs/yq/4.44.3/bin
  ~/.local/share/mise/installs/pipx/1.7.1/bin
  ~/.local/share/mise/installs/usage/0.11.0/bin
  ~/.local/share/mise/installs/helmfile/0.164.0/bin
  ~/.local/share/mise/installs/helm/3.16.2/bin
  ~/.local/share/mise/installs/snyk/1.1260.0/bin
  ~/.local/share/mise/installs/k9s/0.32.5/bin
  ~/.local/share/mise/installs/teleport/16.4.2/
  ~/.local/share/mise/installs/awscli/2.18.15/bin
  ~/.local/share/mise/installs/protoc/28.3/bin
  ~/.local/share/mise/installs/go-google-golang-org-protobuf-cmd-protoc-gen-go/1.28.1/bin
  ~/Library/pnpm
  ~/.local/bin
  ~/go/bin
  ~/.rd/bin
  /opt/homebrew/sbin
  /opt/homebrew/opt/openssl@3/bin
  /opt/homebrew/bin
  ~/.dotfiles.fish/bin
  ~/.bin
  /usr/local/sbin
  ~/.cargo/bin
  /usr/local/bin
  /System/Cryptexes/App/usr/bin
  /usr/bin
  /bin
  /usr/sbin
  /sbin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/local/bin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/bin
  /var/run/com.apple.security.cryptexd/codex.system/bootstrap/usr/appleinternal/bin
  /Applications/kitty.app/Contents/MacOS

env_vars:
  MISE_SHELL=fish

settings:
  asdf_compat                            true             ~/.config/mise/config.toml
  disable_hints                          ["python_multi"] ~/.config/mise/config.toml
  experimental                           true             ~/.config/mise/config.toml
  jobs                                   4                ~/.config/mise/config.toml
  plugin_autoupdate_last_check_duration  "1 week"         ~/.config/mise/config.toml
  trusted_config_paths                   ["~/fleet"]      ~/.config/mise/config.toml

1 warning found:

1. plugin rust overrides a core plugin

No problems found
```</div>

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