Improve changed-file verifier diagnostics when dependencies are missing
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 48/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- hugo, javascript, node.js
- 領域
- tooling
調査の方向性
Start with the documented setup, package.json, yarn.lock, and the changed-file verifier and scripts/ci/lint-codeblocks.mjs; confirm the supported Node and Yarn versions and install the repository dependencies. Then rerun yarn verify:changed -- --run content/platform/_index.md and check whether the missing p-limit error is resolved. If setup resolves it, make the verifier or documentation explain how to prepare dependencies; if not, identify the underlying cause and add a regression check that preserves reporting of real lint failures.
索引モデルが issue の本文から書いたものです。
説明
Problem
The changed-file verifier attempts to run code-block lint even when the checkout's JavaScript dependencies aren't installed. The lint command then fails with a Node module-resolution stack trace instead of explaining how to prepare the environment.
Observed
In a checkout with an empty node_modules directory, run:
yarn verify:changed -- --run content/platform/_index.md
The verifier reports a failed yarn lint-codeblocks command. The underlying error is:
Error [ERR_MODULE_NOT_FOUND]: Cannot find package 'p-limit' imported from .../scripts/ci/lint-codeblocks.mjs
p-limit is already declared in package.json and recorded in yarn.lock. This observation does not establish a missing dependency declaration or a CI failure. The checkout had an empty node_modules; installing the repo's dependencies may resolve this specific failure. The affected check hasn't been rerun after an install.
Requested work
- Reproduce from a fresh checkout using the documented setup. Confirm the supported Node and Yarn versions and whether installing dependencies resolves the error.
- If the normal setup resolves it, make the verifier or documentation give a clear, actionable dependency-install instruction when the environment isn't prepared.
- If the failure persists after the supported installation, identify and fix the actual dependency or environment problem.
- Add an appropriate regression check for any behavior changed, and confirm the verifier still reports real lint failures.
Context
Found while checking the InfluxDB 1 positioning changes. The same checkout also lacked the local Hugo executable, so the full build wasn't verified there.
- 主要言語
- JavaScript
- スター
- 83
- フォーク
- 334
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 106
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
influxdata/docs-v2 のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
influxdata/docs-v2#8065 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
influxdata/docs-v2#8064 ·
メンテナーはふだん 1 日以内に返信
-
Link brokenオープン
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
influxdata/docs-v2#8008 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
influxdata/docs-v2#8001 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 88/100
influxdata/docs-v2#7997 ·
メンテナーはふだん 1 日以内に返信
influxdata/docs-v2 の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
directus/agent-skills#8 ·
-
possible bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
Mintplex-Labs/anything-llm#7325 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
[Windows] Hidden title bar: a maximized window restored from minimized on a secondary monitor gets the primary monitor's work area as its client area対応中かも @lijy91 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
libnativeapi/nativeapi#53 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
KilledByAPixel/LittleJS#188 ·