MiMo-Code icon indicating copy to clipboard operation
MiMo-Code copied to clipboard

unsupported update channel: curl

Open haopangang opened this issue 5 months ago • 1 comments

Description

我手动更新到 0.1.1版本,执行更新还是报错。这bug还不解决吗?

Image 版本 Image

Plugins

No response

OpenCode version

No response

Steps to reproduce

No response

Screenshot and/or share link

No response

Operating System

No response

Terminal

No response

haopangang avatar Jun 16 '26 02:06 haopangang

我这里也能稳定复现,补充一下环境和日志,方便定位。

环境

  • macOS / Darwin arm64
  • 安装路径:~/.mimocode/bin/mimo
  • 当前版本:mimo --version 输出 0.1.1
  • 安装/升级方式:官方 curl 安装脚本
curl -fsSL https://mimo.xiaomi.com/install | bash -s -- --version 0.1.1 --no-modify-path

这个方式可以正常把二进制升级到 0.1.1。

复现步骤

mimo upgrade

实际结果

┌  Upgrade
│
●  Using method: curl
Error: Unexpected error, check log file at /Users/guoqun/.local/share/mimocode/log/2026-06-17T012334.log for more details

unsupported update channel: curl

对应日志最后一行:

WARN  2026-06-17T01:23:34 +18ms service=installation method=curl unsupported update channel, skipping

额外观察

mimo upgrade --help 里 --method 的可选项包含 curl:

-m, --method      installation method to use
                  [choices: "curl", "npm", "pnpm", "bun", "brew", "choco", "scoop"]

所以看起来是 CLI 帮助和实际升级逻辑不一致:默认检测到 curl,帮助也声明支持 curl,但运行时把 curl 判成 unsupported update channel。

guoqunabc avatar Jun 17 '26 01:06 guoqunabc