github / github/copilot-cli

1.0.48-0: win32-arm64 prebuilds ships x64 runtime.node instead of ARM64

Ouverte
#3,309 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
area:installation area:platform-windows
Langage dominant
Shell
Étoiles
11.2k
Forks
1.9k
Merge moyen
14 h 16 min
PR mergées (30 j)
6

Description

## Description

On a fresh install of Copilot CLI v1.0.48-0 on Windows ARM64, launching copilot fails with:

Native addon "runtime" not found for win32-arm64.

## Root Cause

The universal package at ~/.copilot/pkg/universal/1.0.48-0/prebuilds/ ships runtime.node for all platforms except win32-arm64:

prebuilds/darwin-arm64/runtime.node OK
prebuilds/darwin-x64/runtime.node OK
prebuilds/linux-arm64/runtime.node OK
prebuilds/linux-x64/runtime.node OK
prebuilds/win32-x64/runtime.node OK
prebuilds/win32-arm64/runtime.node MISSING

There is a file at prebuilds/win32-arm64/win32-x64/runtime.node, but it is an x64 binary. Placing it at the expected path produces "is not a valid Win32 application" because the ARM64 Node process cannot load an x64 native addon.

## Comparison with v1.0.47

Version 1.0.47 shipped the correct ARM64 runtime at a different path: native/runtime/runtime.win32-arm64-msvc.node. This file works correctly when copied to prebuilds/win32-arm64/runtime.node in v1.0.48-0.

## Workaround

Copy the ARM64 runtime from v1.0.47 (if still cached locally):

Copy-Item ~/.copilot/pkg/universal/1.0.47/native/runtime/runtime.win32-arm64-msvc.node ~/.copilot/pkg/universal/1.0.48-0/prebuilds/win32-arm64/runtime.node

## Environment

- OS: Windows 11 ARM64
- Copilot CLI: 1.0.48-0 (installed via winget)
- Architecture: ARM64 native (copilot.exe is ARM64)

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Start by comparing the v1.0.48-0 and v1.0.47 package contents, especially prebuilds/win32-arm64/runtime.node and native/runtime/runtime.win32-arm64-msvc.node. Trace how the universal package's prebuilds are assembled and verify that a fresh Windows ARM64 install contains an ARM64 runtime at the expected path and launches successfully.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
node.js
Domaine
cli, release
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
Calme
Clarté
Plutôt claire
Accessibilité débutants
57/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.