fix: run the layer validator without resolving packages
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 76/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Dart
- Stelle
- 7
- Fork
- 2
- Merge medio
- 9h 59m
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di VeryGoodOpenSource/vgv-ffca-plugin
-
documentation
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
bug
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
-
chore
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
-
feature
Difficoltà 3/5 1-2 giorni Idoneità per principianti 48/100
Tutte le issue di VeryGoodOpenSource/vgv-ffca-plugin
Issue simili
-
🚀 [firebase_core] Bump Firebase C++ SDK (14.1.0 → 14.2.0)Forse già presa @SelaseKay l’ha presa oggi. ApertaNeeds Attention type: enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
firebase/flutterfire#18977 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
[BUG] 172.2* 排除域名包含公网IPAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 67/100
-
agent: is checked on a wrapper holding several checkables answers from the first one in tree orderApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
AlphaWaveSystems/flutter-probe#865 ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
ubuntu/app-center#2306 ·
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
spotiflacapp/SpotiFLAC-Mobile#923 ·