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

Fix: Incorporate platform architecture #1029

Merged
merged 1 commit into from
May 1, 2023
Merged

Conversation

mattmoor
Copy link
Collaborator

🐛 Right now --sbom-dir with a multi-arch build just writes the same file over and over.

This loosely follows the lead of apko which uses the form sbom-{arch}.{form}.json, but we are going with: {app}-{platform}.{form}.json.

It is notable that {platform} is a superset of {arch} and we sanitize the string encoding replacing the / and : characters with -.

/kind bug

🐛 Right now `--sbom-dir` with a multi-arch build just writes the same file over and over.

This loosely follows the lead of apko which uses the form `sbom-{arch}.{form}.json`, but we are going with: `{app}-{platform}.{form}.json`.

It is notable that `{platform}` is a superset of `{arch}` and we sanitize the string encoding replacing the `/` and `:` characters with `-`.

/kind bug
@codecov-commenter
Copy link

Codecov Report

Merging #1029 (2eb1579) into main (7c72ccf) will increase coverage by 0.05%.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##             main    #1029      +/-   ##
==========================================
+ Coverage   52.77%   52.82%   +0.05%     
==========================================
  Files          43       43              
  Lines        3356     3360       +4     
==========================================
+ Hits         1771     1775       +4     
  Misses       1359     1359              
  Partials      226      226              
Impacted Files Coverage Δ
pkg/build/gobuild.go 57.29% <100.00%> (+0.19%) ⬆️

@imjasonh imjasonh merged commit c6dc504 into ko-build:main May 1, 2023
@mattmoor mattmoor deleted the arch-sboms branch May 1, 2023 15:47
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.

3 participants