Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mise should trust the global and system configuration by default #3200

Closed
dgholz opened this issue Nov 25, 2024 · 0 comments · Fixed by #3201
Closed

mise should trust the global and system configuration by default #3200

dgholz opened this issue Nov 25, 2024 · 0 comments · Fixed by #3201
Labels

Comments

@dgholz
Copy link

dgholz commented Nov 25, 2024

Describe the bug
After installing 2024.11.29 (but probably introduced in 2024.11.27), when running mise I see:

mise ERROR error parsing config file: ~/.config/mise/config.toml
mise ERROR Config file ~/.config/mise/config.toml is not trusted.
Trust it with `mise trust`.
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

The directions are straightforward and resolve the warning, but I think the non-local config files should be trusted by default:

  • ~/.config/mise/config.toml
  • /etc/mise/config

To Reproduce
Install 2024.11.29 with an existing global config file.

Expected behavior
No warnings shown about untrusted global config files.

mise doctor output

24.11.29 macos-arm64 (2024-11-25)
activated: yes
shims_on_path: no

build_info:
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS
  Built: Mon, 25 Nov 2024 04:03:52 +0000
  Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15) (Homebrew)
  Profile: release

shell:
  /bin/bash
  GNU bash, version 3.2.57(1)-release (arm64-apple-darwin23)
  Copyright (C) 2007 Free Software Foundation, Inc.

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
  ~/.mise.toml
  ~/code/project/.nvmrc
  ~/code/project/.ruby-version
  ~/code/project/Gemfile

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

plugins:
  terraform   https://github.com/asdf-community/asdf-hashicorp.git#22eb1c4
  terragrunt  https://github.com/ohmer/asdf-terragrunt.git#4a6651a

toolset:
  asdf:terraform@1.9.8
  core:node@20.12.2
  core:ruby@3.3.5

env_vars:
  MISE_NODE_COREPACK=true
  MISE_SHELL=bash

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 = []
  exec_auto_install = true
  experimental = false
  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"
  ignored_config_paths = []
  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
  task_run_auto_install = true
  task_skip = []
  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

  [aqua]
  cosign = true
  slsa = true

  [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 = "always"
  show_env = true
  show_tools = false

No problems found

Additional context
Add any other context about the problem here. Consider running mise with --debug or --trace for extra debug info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant