MoonshotAI / MoonshotAI/kimi-code

install.ps1解析架构异常

Open Beginner friendly
#1,850 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
7.5k
Forks
1.2k
Avg merge
11h 53m
Merged PRs (30d)
350

Description

What version of Kimi Code is running?

0.26.0

Which open platform/subscription were you using?

Windows ARM64

Which model were you using?

No response

What platform is your computer?

Windows 11 ARM64

What issue are you seeing?

脚本解析时出现下面的错误:

    ==> Detected target: win32-arm64 arm64
    ==> Resolving latest version from https://code.kimi.com/kimi-code/latest
    ==> Latest version: 0.26.0
    ==> Fetching manifest https://code.kimi.com/kimi-code/binaries/0.26.0/manifest.json
    error: platform win32-arm64 arm64 not found in manifest

查看脚本,应该是powershell默认不区分大小写,所以两个arm64的判断重复了,脚本片段如下:

  $arch = switch ($rawArch) {
    'X64'     { 'x64' }
    'X86'     { 'x86' }
    'Arm64'   { 'arm64' }
    'ARM64'   { 'arm64' }
    'AMD64'   { 'x64' }
    'IA64'    { 'ia64' }
    default   { Die "unsupported architecture: $rawArch" }
  }
What steps can reproduce the bug?

在Window 11 ARM版使用powershell脚本安装

What is the expected behavior?

No response

Additional information

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with install.ps1 and inspect the architecture switch that handles raw PowerShell architecture values. Reproduce the installation on Windows 11 ARM64, then verify that the detected architecture resolves to an entry present in the 0.26.0 manifest and no longer reports the platform as missing.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Clearly specified
Newbie friendliness
78/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.