attrs: backfill source_provenance / binary_from (batch 1, 18 packages) - #352
Conversation
Adds provenance to 18 packages whose upstream is unambiguous. Values determined from the package manager's resolver config, not inferred (suggest-provenance returns 0 auto-candidates — every missing package fetches from a gs:// mirror that hides the real host). Metadata-only; no build changes. GithubRepo (canonical repo verified live): zig ziglang/zig · llvm-bootstrap llvm/llvm-project · alex haskell/alex · happy haskell/happy · less gwsw/less Sourceforge: stm32flash · dfu-util · expect · libfdk-aac (opencore-amr) GnuProject: findutils · gawk-bootstrap (gawk) · bash-bootstrap (bash) binary_from (prebuilt, not built from source): gcloud · android-sdk · edgedelta · ghc-bootstrap · maven · claude-code Ref: https://minimal-dev.slack.com/archives/C091HGA43NC/p1783109351331609
📝 WalkthroughWalkthroughThis PR adds new metadata attributes to ChangesBuild metadata additions
Estimated code review effort: 1 (Trivial) | ~5 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
packages/gcloud/build.ncl (1)
77-77: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winReference
dl_baseinstead of duplicating the literal URL.
dl_baseis already defined at Line 16 with this exact value and used for the actual download URLs. Hardcoding the same string again inbinary_fromrisks drift ifdl_baseis ever updated.♻️ Proposed fix
- binary_from = "https://storage.googleapis.com/cloud-sdk-release", + binary_from = dl_base,🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@packages/gcloud/build.ncl` at line 77, The `binary_from` value in the `gcloud` build config duplicates the same download base URL already defined in `dl_base`. Update the `binary_from` setting to reference `dl_base` directly so `build.ncl` has a single source of truth and stays consistent if the base URL changes.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@packages/gcloud/build.ncl`:
- Line 77: The `binary_from` value in the `gcloud` build config duplicates the
same download base URL already defined in `dl_base`. Update the `binary_from`
setting to reference `dl_base` directly so `build.ncl` has a single source of
truth and stays consistent if the base URL changes.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 09b0e4f3-95c4-4619-8dcf-c30b567879c4
📒 Files selected for processing (18)
packages/alex/build.nclpackages/android-sdk/build.nclpackages/bash-bootstrap/build.nclpackages/claude-code/build.nclpackages/dfu-util/build.nclpackages/edgedelta/build.nclpackages/expect/build.nclpackages/findutils/build.nclpackages/gawk-bootstrap/build.nclpackages/gcloud/build.nclpackages/ghc-bootstrap/build.nclpackages/happy/build.nclpackages/less/build.nclpackages/libfdk-aac/build.nclpackages/llvm-bootstrap/build.nclpackages/maven/build.nclpackages/stm32flash/build.nclpackages/zig/build.ncl
Backfills provenance for 18 packages whose upstream is unambiguous. Values come from the package manager's resolver config —
suggest-provenancereturns 0 auto-candidates (every missing package fetches from ags://mirror that hides the real host, so inference can't fire). Metadata-only; no build changes; all 18 nickel-eval cleanly.Added
GithubRepo(repo verified live)SourceforgeGnuProjectbinary_from(prebuilt, not source)PURL: already supported — the schema has
upstream_purl/peer_purlattrs (with a PURL validator), but no package declares either; the PURL is derived fromsource_provenanceat scan time. No action needed for PURL.Left (not in this batch)
Website, which yields no PURL/CPE (so it wouldn't turn on vuln matching without a pairedcpe_remap). These want either a new GitLabsource_provenancecategory or a provenance+cpe_remap pass.Ref: https://minimal-dev.slack.com/archives/C091HGA43NC/p1783109351331609
Summary by CodeRabbit