@clerk/upgrade stalls on binary build artifacts
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 52/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- bun, typescript
- 領域
- build-system, tooling
調査の方向性
リンクされた tauri-plugin-clerk リポジトリで bun x @clerk/upgrade --dry-run を使って停止を再現することから始め、examples/react-example/src-tauri/target/debug の有無で実行結果を比較します。リンクされた gist とスキャン出力を使って、スキャンのエントリーポイントを特定します。Done には、停止せずにバイナリのビルド成果物を処理することを含める必要があります。spinner のパス、デフォルトの ignore glob、および .gitignore のサポートは、追加またはオプションの動作として記載されています。
索引モデルが issue の本文から書いたものです。
説明
Preliminary Checks
-
I have reviewed the documentation: https://clerk.com/docs
-
I have searched for existing issues: https://github.com/clerk/javascript/issues
-
I have not already reached out to Clerk support via email or Discord (if you have, no need to open an issue here)
-
This issue is not a question, general help request, or anything other than a bug report directly related to Clerk. Please ask questions in our Discord community: https://clerk.com/discord.
Reproduction
https://gist.github.com/rofinn/34747e70ad8ecadd03f76d0d4200dfd9
Publishable key
N/A
Description
Running clerk/upgrade --dry-run in a monorepo containing cargo build artifacts causes the scan step to stall trying to analyze binary build files. The linked github gist includes the steps to reproduce with shell output.
Steps to reproduce:
- Clone https://github.com/Nipsuli/tauri-plugin-clerk.git (or any repo that may produced binary build artifacts)
- Generated the build artifacts. In the example, this was running
cargo buildinexamples/react-example/src-tauri. - Run
time bun x @clerk/upgrade --dry-runfrom theexamples/react-exampledirectory (to mimic a monorepo). - Kill the scan after it stalls
- Delete the
examples/react-example/src-tauri/target/debugdirectory and rerun - You'll notice it completes fine.
Expected behavior:
I would have expected the scanning step to focus on text files that contain potential code issues. I understand that just relying on extensions isn't the most reliable if you want to catch issues in scripts or markdown files, but I think it should be able to identify and catch binary build artifacts.
Actual behavior:
I think the desired behaviour has 4 components.
- The scan file spinner should probably give the full relative path to make it easier to spot when this is happening. Some build artifacts can have pretty opaque names.
- I think we should be able to detect binary files as part of the scan.
- (Optional) Broaden the default ignore globs include include common build output directories
- (Optional) It'd be nice if the scanner picked up existing .gitignore rules
Environment
N/A. Can be reproduced in any repo with binary build artifacts.
- 主要言語
- TypeScript
- スター
- 1.8k
- フォーク
- 472
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 222
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
clerk/javascript のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
clerk/javascript#9611 · コメント 1 件 ·
-
clerk/javascript#9891 · 担当者 1 名 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 64/100
clerk/javascript#9775 · コメント 1 件 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
clerk/javascript#9770 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
clerk/javascript#9667 · コメント 1 件 ·
clerk/javascript の issue をすべて見る
似ている issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
Crush オープン
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
catppuccin/catppuccin#3125 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100