Enhancement: use `mix.lock` as an SBOM lockfile and emit `pkg:hex/` PURLs
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- elixir, typescript
調査の方向性
Start with src/engine/lockfile.ts (fullDependencyGraph), src/reporting/commands/sbom.ts (PROJECT_ECOSYSTEM), and src/core-open/utils/lockfile-parse.ts (KIND_BY_BASENAME); read the Elixir rows in docs/sbom-dependency-scope.md and compare the composer lockfile path and its tests. Add mix.lock coverage for Hex packages while excluding git, path, and in-umbrella entries, then update the scope documentation. Done when CycloneDX and SPDX produce the expected Hex PURL, invalid lockfiles fail clearly, and --no-transitive keeps only declared packages.
索引モデルが issue の本文から書いたものです。
説明
- Difficulty: medium
- Area: SBOM / Elixir
Problem
docs/sbom-dependency-scope.md states that the export list has no mix.lock, so a package that appears only there is absent, and CycloneDX dependencies / SPDX DEPENDS_ON are omitted. fullDependencyGraph in src/engine/lockfile.ts (around lines 396–410) walks npm, pnpm, yarn, Cargo.lock, go.sum, poetry, uv, Pipfile.lock, Gemfile.lock, composer.lock, and packages.lock.json — not mix.lock. PROJECT_ECOSYSTEM in src/reporting/commands/sbom.ts (around lines 70–84) has no elixir entry, so an Elixir project is treated as an unknown type and projectEcosystem falls back to 'npm' (with a guessed-ecosystem warning). That is adjacent to open #167 (do not guess npm PURLs), but this issue is specifically: expand mix.lock and map Elixir to Hex.
The scan already parses mix.lock in src/core-open/scanners/elixir-scanner.ts (around lines 649–659), and src/core-open/utils/version-timeline.ts already has parseMixLock. Fail-closed syntax checking in src/core-open/utils/lockfile-parse.ts (KIND_BY_BASENAME) also omits mix.lock.
Expected behaviour
- Map
elixir→ Hex inPROJECT_ECOSYSTEMand emitpkg:hex/<name>@<version>(no npm fallback). - Expand
mix.lockinfullDependencyGraph: hex entries (:hex) become components; git / path / in-umbrella entries are not registry components. - A lockfile package also declared in
mix.exsat that version staysdirect; a package only in the lockfile istransitive. - Development / optional marks from the manifest still apply when the name matches; follow the existing Elixir rows in
docs/sbom-dependency-scope.md. - A truncated or invalid
mix.lockfails the export the same waycomposer.lockdoes (LockfileParseError). --no-transitiveomits lockfile-only rows and keeps declaredmix.exsrows.- Update
docs/sbom-dependency-scope.md.
Acceptance
- Tests modelled on
test/sbom-composer-lock.test.ts/test/sbom-php-require-dev.test.ts. - CycloneDX and SPDX both emit
pkg:hex/[email protected](example) and neverpkg:npm/jason. - A lockfile-only transitive hex package appears only when transitives are on.
- Git / path lock entries are absent from the component list.
- An invalid
mix.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
-
area: documentation status: in progress type: documentation
難易度 1/5 1時間未満 初心者へのやさしさ 76/100
Oddmash/oddmash-ui#222 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 79/100
appium/appium-wincore-driver#169 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
india-ultimate/hub#715 ·
メンテナーはふだん 1 日以内に返信
-
documentation Entwickler
難易度 1/5 1時間未満 初心者へのやさしさ 89/100
メンテナーはふだん 1 日以内に返信