Enhancement: use `pubspec.lock` as an SBOM lockfile
Maintainer thường phản hồi trong vòng 1 ngày
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
- 74/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- dart, typescript
Hướng nghiên cứu
Read src/engine/lockfile.ts around the pubspecLock helper, then trace how fullDependencyGraph handles pubspec.yaml and how test/sbom-composer-lock.test.ts and test/sbom-dart-dev-dependencies.test.ts cover exports. Add nearby Dart lockfile tests for transitive packages, SDK exclusions, development scope, invalid input, and --no-transitive; update docs/sbom-dependency-scope.md. Done when the acceptance cases pass for CycloneDX and SPDX.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
- Difficulty: medium
- Area: SBOM / Dart
Problem
Same shape as issue 18, for Dart. docs/sbom-dependency-scope.md says the export list has no pubspec.lock. fullDependencyGraph does not call a pubspec lock tree (there is already a pubspecLock helper in src/engine/lockfile.ts around lines 147–151 for version lookup, but it is not part of the export graph). SDK packages (sdk: flutter, sdk: dart / sdk: flutter test packages) must stay out of the component list, matching the manifest rules already tested in test/sbom-dart-dev-dependencies.test.ts.
Direct pubspec.yaml rows already export with pkg:pub/…. Transitive packages that only the lockfile knows are missing from vg sbom export.
Expected behaviour
Expand pubspec.lock in fullDependencyGraph with ecosystem dart. A locked package also declared in pubspec.yaml at that version stays direct; lockfile-only packages are transitive. dev_dependencies already declared in the manifest keep their development marks (scope excluded / SPDX DEV_DEPENDENCY_OF). SDK entries in the lockfile are not components. A truncated or invalid pubspec.lock fails the export. --no-transitive drops lockfile-only rows. Update docs/sbom-dependency-scope.md. KIND_BY_BASENAME already lists pubspec.lock as YAML; keep fail-closed parsing.
Acceptance
- Tests next to
test/sbom-dart-dev-dependencies.test.ts, modelled ontest/sbom-composer-lock.test.ts. - A lockfile-only transitive pub package appears in both CycloneDX and SPDX with a
pkg:pub/…purl when transitives are on. flutter/flutter_testSDK entries are still absent.flutter_lintsdeclared underdev_dependenciesstays a direct development row.- An invalid
pubspec.lockexits non-zero with an actionable, content-free error.
- Ngôn ngữ chính
- TypeScript
- Star
- 4
- Fork
- 3
- Merge trung bình
- 1 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 76
Chuẩn bị môi trường
- Có Dockerfile hoặc 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 vibgrate/cli
-
documentation good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
Issue tương tự
-
documentation Entwickler
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 89/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area:frontend bug ci-test level:low priority:high
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
skytuhua-org/Gen-V1#2974 · 4 bình luận ·
Maintainer thường phản hồi trong vòng 2 ngày
-
area: cli area: core priority: P3 type: bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
appandflow/stim#6736 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
naomiaro/waveform-playlist#973 ·
Maintainer thường phản hồi trong vòng 1 ngày