Source builds: missing UI library error suggests `perry target add`, which cannot work without update keys

Đang mở Phù hợp với người mới
#15,210 0 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
70/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ệ
rust
Lĩnh vực
build-system, cli

Hướng nghiên cứu

Tìm trong crate CLI của perry đoạn văn bản chẩn đoán «which is not installed, and this perry cannot verify a download» để xác định nơi gợi ý về thư viện UI còn thiếu được tạo ra. Đọc thông báo liền kề về thư viện runtime còn thiếu, thông báo này đã in ra cách build từ mã nguồn (cargo build -p perry-runtime-static, PERRY_RUNTIME_DIR), rồi dùng lại cách diễn đạt đó cho crate UI. Hoàn thành khi một lần build không có khóa cập nhật gợi ý cargo build --release -p perry-ui-<platform> cùng PERRY_RUNTIME_DIR thay vì perry target add, và các bài kiểm thử CLI hiện có vẫn chạy đạt.

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

Mô tả

type:bug
Where does it go wrong?

Installing or running the perry CLI itself

What happened

With a perry built from source, compiling a perry/ui program for any target fails with:

error: this perry/ui program links `libperry_ui_macos.a`; it ships in @perryts/[email protected], which is not installed, and this perry cannot verify a download: this Perry release has no trusted CLI update public keys; self-update is disabled until the release is built with PERRY_CLI_UPDATE_PUBLIC_KEYS
Install them:
  perry target add --ui

The suggested command cannot succeed for the reason given in the same message. The missing runtime library error already explains the source-build route (cargo build --release -p perry-runtime-static --target <triple>, scripts/gc_call_effects/sidecars.sh, PERRY_RUNTIME_DIR). The UI library error does not.

What you expected

On a build without update keys, the hint names the source route for the UI crate: cargo build --release -p perry-ui-<platform> --target <triple>, plus PERRY_RUNTIME_DIR pointing at that target dir. That is what worked for me on macos, ios-simulator and android.

Minimal reproduction
import { Text } from "perry/ui"
Text("hi")
Command you ran
cargo build --release -p perry
./target/release/perry compile main.ts -o app --target macos
Perry version

perry 0.5.1663 (built from source at 05812f75d9)

Host OS

macOS 27.0.1 arm64

How did you install Perry?

Built from source

Target platform

macos, ios-simulator, android

Ngôn ngữ chính
Rust
Star
4.9k
Fork
166
Merge trung bình
6 giờ 59 phút
Pull request đã merge (30 ngày)
955

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 PerryTS/perry

Tất cả issue của PerryTS/perry

Issue tương tự

Thêm issue về Rust

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.