Enhancement: use `pubspec.lock` as an SBOM lockfile
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 74/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- dart, typescript
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
- 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.
- 主要言語
- TypeScript
- スター
- 4
- フォーク
- 3
- 平均マージ
- 1日 22時間
- マージ済み PR(30日)
- 76
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
vibgrate/cli のほかの issue
-
documentation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
bug good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
メンテナーはふだん 1 日以内に返信
-
enhancement good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
area:frontend bug ci-test level:low priority:high
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
skytuhua-org/Gen-V1#2974 · コメント 4 件 ·
メンテナーはふだん 2 日以内に返信
-
area: cli area: core priority: P3 type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
appandflow/stim#6736 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
naomiaro/waveform-playlist#973 ·
メンテナーはふだん 1 日以内に返信