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 self-update ignore settings.yes value #1831

Closed
Ernest0-Production opened this issue Mar 24, 2024 · 0 comments
Closed

Mise self-update ignore settings.yes value #1831

Ernest0-Production opened this issue Mar 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Ernest0-Production
Copy link

Describe the bug

When updating mise via the self-update command, it asks you to confirm the installation, despite the fact that the toml file is set to yes.

To Reproduce

  1. In config toml:
[settings]
yes = true
  1. Execute mise self-update <any-version>
mise release status:
  * Current exe: "/Users/ernest0n/.local/bin/mise"
  * New exe release: "mise-v2024.3.8-macos-arm64.tar.gz"
  * New exe download url: "https://api.github.com/repos/jdx/mise/releases/assets/158247519"

The new release will be downloaded/extracted and the existing binary will be replaced.
Do you want to continue? [Y/n] 

If I pass --yes options – it works as expected

Expected behavior

Update mise without user confirmation

mise doctor output

version: 2024.3.8 macos-arm64 (17620f9 2024-03-23)
activated: yes
shims_on_path: no

build_info: 
  Target: aarch64-apple-darwin
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Sat, 23 Mar 2024 15:29:53 +0000
  Rust Version: rustc 1.77.0 (aedd173a2 2024-03-17)
  Profile: release

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

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

config_files: 
  ~/Projects/okko/okkoios/Gemfile
  ~/Projects/okko/okkoios/.mise/config.toml

plugins: 
  bun        (core)
  bundler    https://github.com/jonathanmorley/asdf-bundler.git#a461ac4
  deno       (core)
  go         (core)
  java       (core)
  node       (core)
  python     (core)
  ruby       (core)
  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
  xcodes     https://github.com/younke/asdf-xcodes.git#9f037bf

toolset: 
  tuist@4.7.0       
  swiftlint@0.54.0  
  swiftgen@6.6.3    
  ruby@3.2.2        
  xcodes@1.4.1      
  bundler@2.4.13    

env_vars: 
  MISE_SHELL=zsh

settings: 
  activate_aggressive = true
  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/ernest0n/.default-python-packages"
  python_pyenv_repo = "https://github.com/pyenv/pyenv.git"
  raw = false
  trusted_config_paths = []
  quiet = false
  verbose = false
  yes = true
  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

No problems found

Additional context

I also discovered a strange bug when trying to roll back to a previous version of mise:

mise version
2024.3.8 macos-arm64 (17620f9 2024-03-23)

mise self-update 2024.3.1
Looking for tag: v2024.3.1
mise ReqwestError: error sending request for url (https://api.github.com/repos/jdx/mise/releases/tags/v2024.3.1): error trying to connect: invalid URL, scheme is not http
mise error sending request for url (https://api.github.com/repos/jdx/mise/releases/tags/v2024.3.1): error trying to connect: invalid URL, scheme is not http
mise error trying to connect: invalid URL, scheme is not http
mise invalid URL, scheme is not http
mise Run with --verbose or MISE_VERBOSE=1 for more information
@Ernest0-Production Ernest0-Production added the bug Something isn't working label Mar 24, 2024
@jdx jdx closed this as completed in b4c4608 Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant