[Bug] step update fails on Windows with "release archive does not contain the Step binary"

Geschlossen Anfängerfreundlich
#269 1 Kommentar 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Maintainer antworten meist innerhalb von 1 Tag

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
2/5
Geschätzter Aufwand
1-3 Stunden
Anfängerfreundlichkeit
78/100
Issue-Typ
Bug
Klarheit
Klar beschrieben
Aktivitätsstatus
Aktiv
Tech-Stack
typescript
Bereich
cli

Rechercherichtung

Lies packages/coding-agent/src/step/local-update.ts und konzentriere dich auf findArchiveRoot und darauf, wie der Updater extrahierte Archive nach der Step-Binärdatei durchsucht. Reproduziere den Fehler mit dem im Issue beschriebenen flachen Windows-ZIP-Layout und überprüfe dann, dass step update step.exe findet und das verschachtelte Unix-Archiv weiterhin funktioniert. Fertig, wenn das Windows-Selbstupdate erfolgreich abgeschlossen wird.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

What happened?

step update always fails on Windows, after the download and checksum
verification have already succeeded:

$ step --version
0.1.4
$ step update
Step update failed: release archive does not contain the Step binary

Impact: Windows users cannot self-update at all — every release from 0.1.2
through 0.1.5 fails the same way — and have to reinstall manually every
time there is a new version.

Root cause: the two platforms ship different archive layouts. The Windows
step-*-windows-x64.zip is flat (step.exe at the archive root), while the
Unix step-*-linux-x64.tar.gz is wrapped in a top-level step/ directory.
findArchiveRoot in packages/coding-agent/src/step/local-update.ts assumes
the wrapped layout and picks the first subdirectory it sees — which is docs
on Windows — so the search for step.exe is confined to docs/ and never
finds it.

Steps to reproduce
  1. Install the native Windows build (0.1.2 / 0.1.3 / 0.1.4 all affected).
  2. Run step update.
  3. Observe the failure above. Fresh installs via install.ps1 are fine —
    only the self-update path breaks.
Image
Expected behavior

step update completes successfully on Windows, same as on Unix.

Version

0.1.4 (Windows 11 x64, native install; update target resolved from
latest.json is 0.1.5)

Vorherrschende Sprache
TypeScript
Sterne
1k
Forks
71
Ø Merge
13 Std. 14 Min.
Gemergte PRs (30 T.)
66

Entwicklungsumgebung

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus stepfun-ai/Step-Code

Alle Issues in stepfun-ai/Step-Code

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.