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

オープン 初心者向け
#15,210 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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 の本文から書いたものです。

説明

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

主要言語
Rust
スター
4.9k
フォーク
166
平均マージ
6時間 59分
マージ済み PR(30日)
955

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

PerryTS/perry のほかの issue

PerryTS/perry の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。