Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở Phù hợp với người mới
#269 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
78/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
typescript
Lĩnh vực
cli

Hướng nghiên cứu

Đọc packages/coding-agent/src/step/local-update.ts, tập trung vào findArchiveRoot và cách trình cập nhật tìm tệp nhị phân Step trong các kho lưu trữ đã giải nén. Tái hiện lỗi với bố cục ZIP phẳng của Windows được mô tả trong issue, sau đó xác minh rằng step update tìm thấy step.exe trong khi kho lưu trữ Unix có thư mục bao ngoài vẫn hoạt động. Hoàn tất khi quá trình tự cập nhật trên Windows kết thúc thành công.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)

Ngôn ngữ chính
TypeScript
Star
1k
Fork
65
Merge trung bình
1 ngày 7 giờ
Pull request đã merge (30 ngày)
56

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của stepfun-ai/Step-Code

Tất cả issue của stepfun-ai/Step-Code

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.