server: hatch build hook only watches package.json — wheel builds ship a stale frontend after source-only edits
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 68/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- javascript, python, typescript
- 領域
- build-system, devtools
調査の方向性
Start by reading src/profiles/web/build_hook.py and build.py, then compare how each build path decides whether to rebuild, installs dependencies, and reports failures. The issue points to the relevant functions and proposed fixes. Done means source or lockfile edits trigger fresh wheel assets, both paths handle npm consistently, and hook failures show useful error output.
索引モデルが issue の本文から書いたものです。
説明
Problem
The packaging staleness check ignores every frontend source file:
# src/profiles/web/build_hook.py:17-28
def _needs_rebuild(web_dir: Path, marker_file: Path) -> bool:
if not marker_file.exists():
return True
package_json = web_dir / "package.json"
…
return package_mtime > marker_mtime
Editing any .ts/.tsx/.css source after the last build and running hatch build / pip install . skips the rebuild entirely and packages the committed dist/ (possibly stale).
Related divergence between the two build paths (DRY violation per AGENTS.md):
build.py:141-149deliberately runsnpm install("Use npm install instead of npm ci to handle lock file sync issues") — which can silently mutatepackage-lock.jsonduring a "build" — while the hook runsnpm ci.build.pyalso doesn't watchpackage-lock.jsonfor staleness.build_hook._run_npm_buildusescapture_output=Trueand on failure prints onlyERROR: npm build failed: {e}(build_hook.py:74-76) —e.stdout/e.stderrare discarded, so a failed packaging build gives no reason.
Suggested fix
- Extract a shared
needs_rebuild()intoweb/build.py(scanning package.json + lock +**/*.{ts,tsx,css,html}) and havebuild_hookimport it — or simply always runnpm run buildin the hook when npm is available. - Standardize on
npm ci --no-audit --no-fundin both (escape-hatch flag for lock drift in build.py). - Print
e.stderr(tail) on hook failure.
- 主要言語
- Python
- スター
- 1
- フォーク
- 1
- 平均マージ
- 4時間 46分
- マージ済み PR(30日)
- 55
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
falbany/ProFiles のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
falbany/ProFiles#187 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
bug frontend
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
falbany/ProFiles の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
ip-tools/patzilla#219 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
EPSSClient commits to its SQLite cache once per score: a 100-CVE bulk fetch makes 101 disk flushesオープンpriority:p3 technical-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
jimmy058910/jmo-security-repo#1673 ·
メンテナーはふだん 1 日以内に返信
-
enhancement ready
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
-
integration: frontier_silicon
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
home-assistant/core#193176 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
task create and task update take --body-file and --stdin対応中かも @JuanBarriosS が今日担当しました。 オープンcli enhancement good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
pyrite-wiki/pyrite#1687 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信