fix: run the layer validator without resolving packages
まだ誰も着手していません。
評価
調査の方向性
Start with scripts/validate_layers.dart, scripts/pubspec.yaml, and the command references in agents/ffca-layer-auditor.md and skills/ffca-audit/SKILL.md; then inspect the Layer Validator CI job and hooks/validate_layers_test.sh. Run the hook from a clean temporary directory and check whether it resolves packages or writes files. Done means the validator runs without those side effects, its tests still run in CI, and the hook and CLAUDE.md describe the behavior.
索引モデルが issue の本文から書いたものです。
説明
Description
The validator is written to need only the Dart SDK: it imports only dart:io, and the README says "no dart pub get required". But scripts/pubspec.yaml, which exists only so the tests can use package:test, sits next to validate_layers.dart. dart run resolves the closest pubspec, so on its first run the hook resolves package:test and its dependencies. It fetches them from pub.dev when they aren't cached, and it writes .dart_tool/ and pubspec.lock into the installed plugin's scripts/ folder.
The directory's security scan flags network calls and file writes the README doesn't describe. Removing the resolution step keeps the hook offline and leaves the plugin folder unchanged, so the README can keep its current claim.
The same command runs from agents/ffca-layer-auditor.md and skills/ffca-audit/SKILL.md with --all.
Steps To Reproduce
- Copy
scripts/validate_layers.dartandscripts/pubspec.yamlinto an empty folder. - From another folder, run
dart run <folder>/validate_layers.dart --all. <folder>now holds.dart_tool/and apubspec.lockthat listspackage:testand its dependencies.
Expected Behavior
- Running the validator from the hook, the skill or the agent resolves no packages, makes no network calls and writes no files
- The validator tests still run in CI under the Layer Validator job
-
hooks/validate_layers_test.shand the## Hookssection ofCLAUDE.mdmatch the new behavior - All CI/CD checks are passing
Additional Context
- Pre-submission checklist: "Describe in the README everything the plugin runs, sends, or fetches."
- Found on Dart 3.13.5.
dart runhas no option to skip the resolution step.
- 主要言語
- Dart
- スター
- 7
- フォーク
- 2
- 平均マージ
- 9時間 59分
- マージ済み PR(30日)
- 7
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
VeryGoodOpenSource/vgv-ffca-plugin のほかの issue
-
documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
-
chore
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
-
feature
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
VeryGoodOpenSource/vgv-ffca-plugin の issue をすべて見る
似ている issue
-
🚀 [firebase_core] Bump Firebase C++ SDK (14.1.0 → 14.2.0)対応中かも @SelaseKay が今日担当しました。 オープンNeeds Attention type: enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
firebase/flutterfire#18977 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
agent: is checked on a wrapper holding several checkables answers from the first one in tree orderオープンbug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
AlphaWaveSystems/flutter-probe#865 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
ubuntu/app-center#2306 ·
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
spotiflacapp/SpotiFLAC-Mobile#923 ·