install.sh: honor PLANNOTATOR_RELEASE_DOWNLOAD_URL for the binary download
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
ハードコードされた GitHub の URL は install.sh の 848 行目付近にある binary_url です。PLANNOTATOR_RELEASE_DOWNLOAD_URL の上書きは、update-prepare で .sha256 を取得する際にすでに使われているので、同じパターンを踏襲してください。まず install.sh が binary_url をどのように組み立て、PLANNOTATOR_EXPECTED_SHA256 をどのように確認しているかを読んでください。設定されていれば、バイナリとチェックサムの両方が上書き先から取得され、未設定なら GitHub にフォールバックし、かつチェックサムによるインストールの検証が引き続き行われる状態になれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Problem
On some networks, downloading release assets from github.com is very slow. Here it ran at about 110 KB/s, so the ~195 MB plannotator-darwin-arm64 took about 25 minutes, and the update lock was held the whole time. A nearby machine downloads the same file in seconds and could serve it as a mirror. Plannotator already has a setting for this, but the installer ignores it for the binary.
Current behavior (0.28.63)
- The app accepts
PLANNOTATOR_RELEASE_DOWNLOAD_URL, which passesisAllowedOverrideUrl.update-prepareuses it to fetch the.sha256. install.shhardcodes GitHub for the binary (line 848):
So the override changes where the checksum comes from, but the 195 MB download still goes to github.com.binary_url="https://github.com/${REPO}/releases/download/${latest_tag}/${binary_name}"
Request
Make install.sh use PLANNOTATOR_RELEASE_DOWNLOAD_URL for the binary and its .sha256 when set, and fall back to GitHub when it isn't:
release_base="${PLANNOTATOR_RELEASE_DOWNLOAD_URL:-https://github.com/${REPO}/releases/download}"
binary_url="${release_base}/${latest_tag}/${binary_name}"
The pinned SHA-256 check (PLANNOTATOR_EXPECTED_SHA256) still guards the file, so a mirror can't swap in a different binary.
Why
With this change, a slow link can point updates at a mirror and keep the normal path: auto-update, Update now, checksum and attestation checks. Without it, the only workaround is to copy the binary by hand into the installer's temp download file mid-update, which depends on internal details.
- 主要言語
- TypeScript
- スター
- 8.7k
- フォーク
- 649
- 平均マージ
- 10時間 45分
- マージ済み PR(30日)
- 830
環境構築
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
backnotprop/plannotator のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
backnotprop/plannotator#2643 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#2243 · コメント 2 件 · リアクション 2 件 ·
メンテナーはふだん 1 日以内に返信
-
Annotate documentation omits per-file version history and privacy controls再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
backnotprop/plannotator#1086 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 半日 初心者へのやさしさ 45/100
backnotprop/plannotator#3301 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
backnotprop/plannotator#3299 ·
メンテナーはふだん 1 日以内に返信
backnotprop/plannotator の issue をすべて見る
似ている issue
-
Resources: Update work of urumqi対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
railmapgen/rmp-gallery#4176 ·
メンテナーはふだん 2 日以内に返信
-
GraphQL custom headers duplicate differently cased default headers対応中かも @yxr-2025 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
elie222/rakazo#4625 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
enhancement sharing & sync
難易度 1/5 1時間未満 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
[Adapter] Magic Hourオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
HelpCode-ai/anythingmcp#1659 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信