step update fails on Windows with "release archive does not contain the Step binary"
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
- Install the native Windows build (0.1.2 / 0.1.3 / 0.1.4 all affected).
- Run
step update. - Observe the failure above. Fresh installs via
install.ps1are fine —
only the self-update path breaks.
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
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của stepfun-ai/Step-Code
-
area/build bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stepfun-ai/Step-Code#190 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/tools bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stepfun-ai/Step-Code#186 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/tools bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stepfun-ai/Step-Code#185 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/tools bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stepfun-ai/Step-Code#184 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
stepfun-ai/Step-Code#179 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của stepfun-ai/Step-Code
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
getsentry/sentry-conventions#732 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
status:in-linear status:team-assigned team:nodes
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
n8n-io/n8n#41548 · 2 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
motiondivision/motion#3955 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
DQ assisgnment closing at CRĐang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
equinor/prisma-decision-web#919 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
自荐 / Suggestion: Prisma ComputeĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 83/100