fix: run the layer validator without resolving packages
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 76/100
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Dart
- Star
- 7
- Fork
- 2
- Merge trung bình
- 9 giờ 59 phút
- Pull request đã merge (30 ngày)
- 7
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của VeryGoodOpenSource/vgv-ffca-plugin
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
chore
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
bug
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
-
chore
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
-
feature
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
Tất cả issue của VeryGoodOpenSource/vgv-ffca-plugin
Issue tương tự
-
🚀 [firebase_core] Bump Firebase C++ SDK (14.1.0 → 14.2.0)Có thể đã có người làm @SelaseKay đã nhận hôm nay. Đang mởNeeds Attention type: enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
firebase/flutterfire#18977 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[BUG] 172.2* 排除域名包含公网IPĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
agent: is checked on a wrapper holding several checkables answers from the first one in tree orderĐang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
AlphaWaveSystems/flutter-probe#865 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ubuntu/app-center#2306 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
spotiflacapp/SpotiFLAC-Mobile#923 ·