Enhancement: use `mix.lock` as an SBOM lockfile and emit `pkg:hex/` PURLs
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ó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/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ệ
- elixir, typescript
Hướng nghiên cứu
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.
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 / 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.
- 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