Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebuild: make SBOM more reproducible #1788

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

imjasonh
Copy link
Member

With this change:

$ go run ./ rebuild <(curl -sL https://apk.cgr.dev/chainguard/x86_64/crane-0.20.3-r2.apk)
$ diff \
  <(tar -Oxf x86_64/crane-0.20.3-r2.apk var/lib/db/sbom/crane-0.20.3-r2.spdx.json) \
  <(curl -sL https://apk.cgr.dev/chainguard/x86_64/crane-0.20.3-r2.apk | tar -Ox var/lib/db/sbom/crane-0.20.3-r2.spdx.json)
8c8
<       "Tool: melange (devel)",
---
>       "Tool: melange (v0.19.4)",

This should go away if I was using melange 0.19.4 to rebuild, which of course I'm not. Once a version of melange is released with rebuild and is used to build packages, this diff should disappear 🪄

Diffs to rebuilt file owner groups and .melange.yaml still persist.

Signed-off-by: Jason Hall <jason@chainguard.dev>
@imjasonh imjasonh enabled auto-merge February 14, 2025 17:33
@imjasonh imjasonh merged commit da65599 into chainguard-dev:main Feb 14, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants