jdx/mise

Error installing go (golang) in windows

Closed this issue · 1 comments

Describe the bug

mise vfox:go@1.23.3 installing                                                                                     ⠠  4s
[HTMLParser] [E] Main loop reached loop limit (1000). Consider either increasing it or checking HTML-code for syntax errors
mise ERROR Failed to install go@1.23.3
mise ERROR runtime error: [string "C:\Users\runneradmin\.cargo\registry\src\in..."]:1: attempt to index field 'node' (a nil value)
stack traceback:
        [string "C:\Users\runneradmin\.cargo\registry\src\in..."]:1: in function 'find'
        ...sers\zxd\AppData\Local\mise\plugins\go\lib/utils.lua:58: in function 'getReleases'
        ...\AppData\Local\mise\plugins\go\hooks/pre_install.lua:9: in function <...\AppData\Local\mise\plugins\go\hooks/pre_install.lua:7>
        (tail call): in function <(tail call):-1>
mise ERROR Run with --verbose or MISE_VERBOSE=1 for more information

To Reproduce
mise i go in window11

Expected behavior
go be installed
mise doctor output

version: 2024.11.6 windows-x64 (ac78120 2024-11-10)
shims_on_path: yes

build_info:
  Target: x86_64-pc-windows-msvc
  Features: DEFAULT, NATIVE_TLS, OPENSSL
  Built: Sun, 10 Nov 2024 14:52:44 +0000
  Rust Version: rustc 1.82.0 (f6e511eec 2024-10-15)
  Profile: release

shell:
  (unknown)

dirs:
  data: ~\AppData\Local\mise
  config: ~\.config\mise
  cache: ~\AppData\Local\Temp\mise
  state: ~\.local\state\mise
  shims: ~\AppData\Local\mise\shims

config_files:
  ~\.config\mise\config.toml

backends:
  cargo
  core
  go
  npm
  pipx
  spm
  ubi
  vfox

plugins:

toolset:

env_vars:
  (none)

settings:
  activate_aggressive = false
  all_compile = false
  always_keep_download = false
  always_keep_install = false
  asdf = false
  asdf_compat = false
  cache_prune_age = "30d"
  ci = false
  color = true
  debug = false
  disable_backends = ["asdf"]
  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 = false
  log_level = "info"
  not_found_auto_install = true
  paranoid = false
  pin = false
  plugin_autoupdate_last_check_duration = "7d"
  quiet = false
  raw = false
  task_timings = 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
  vfox = true
  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
No warnings found
No problems found

Additional context

DEBUG ARGS: D:\userData\software\mise\bin\mise.exe use -g go --verbose
DEBUG config: C:\Users\zxd\.config\mise\config.toml
DEBUG install_versions: go@latest
INFO  vfox:go@1.23.3  installing
DEBUG [vfox:go] pre_install
DEBUG Getting metadata for go
DEBUG starting new connection: https://go.dev/
DEBUG proxy(http://127.0.0.1:7890) intercepts 'https://go.dev/'
DEBUG starting new connection: https://go.dev/
DEBUG proxy(http://127.0.0.1:7890) intercepts 'https://go.dev/'
[HTMLParser] [E] Main loop reached loop limit (1000). Consider either increasing it or checking HTML-code for syntax errors
Error:
   0: Failed to install go@1.23.3
   1: runtime error: [string "C:\Users\runneradmin\.cargo\registry\src\in..."]:1: attempt to index field 'node' (a nil value)
      stack traceback:
        [string "C:\Users\runneradmin\.cargo\registry\src\in..."]:1: in function 'find'
        ...sers\zxd\AppData\Local\mise\plugins\go\lib/utils.lua:58: in function 'getReleases'
        ...\AppData\Local\mise\plugins\go\hooks/pre_install.lua:9: in function <...\AppData\Local\mise\plugins\go\hooks/pre_install.lua:7>
        (tail call): in function <(tail call):-1>

Location:
   src\backend\vfox.rs:69

Version:
   2024.11.6 windows-x64 (ac78120 2024-11-10)

Backtrace omitted. Run with RUST_BACKTRACE=1 environment variable to display it.
Run with RUST_BACKTRACE=full to include source snippets.