Source builds: missing UI library error suggests `perry target add`, which cannot work without update keys
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 70/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- rust
- 領域
- build-system, cli
調査の方向性
perry CLI クレートで診断テキスト「which is not installed, and this perry cannot verify a download」を検索し、不足している UI ライブラリのヒントがどこで組み立てられているかを見つけてください。すでにソースからのビルド手順(cargo build -p perry-runtime-static、PERRY_RUNTIME_DIR)を表示している、隣接する不足ランタイムライブラリのメッセージを読み、その文言を UI クレート向けにそろえてください。アップデートキーなしのビルドで、perry target add の代わりに cargo build --release -p perry-ui-<platform> と PERRY_RUNTIME_DIR を案内するようになり、既存の CLI テストがすべて通れば完了です。
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Rust
- スター
- 4.9k
- フォーク
- 166
- 平均マージ
- 6時間 59分
- マージ済み PR(30日)
- 955
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
PerryTS/perry のほかの issue
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveオープンarea:stdlib effort:S impact:low parity type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
area:stdlib effort:S impact:low platform:android type:chore
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
area:tooling-ci effort:S impact:low type:chore
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
bcrypt: out-of-range rounds (Infinity, -Infinity, negative) pick a different cost than node bcryptオープンarea:stdlib effort:S impact:low parity type:bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
メンテナーはふだん 1 日以内に返信
-
area:tooling-ci effort:S impact:low type:chore
難易度 2/5 半日 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
apache/datafusion#27688 ·
メンテナーはふだん 1 日以内に返信
-
ai_p1 comp-sql-syntax
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ClickHouse/ClickHouse#133888 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
horizon-rust/horizon#20542 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
LadybirdBrowser/ladybird#15521 ·
メンテナーはふだん 1 日以内に返信
-
macOS: the Save Diagnostics panel goes behind the editor after an app switch and can't be reachedオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
getopenscreen/openscreen#1667 ·
メンテナーはふだん 1 日以内に返信