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

bake: implement composable attributes for attestations #2848

Merged

Conversation

jsternberg
Copy link
Collaborator

No description provided.

@jsternberg
Copy link
Collaborator Author

Depends on #2814.

@jsternberg jsternberg force-pushed the bake-composable-attributes-attests branch from 1c6b5ef to 86061dd Compare December 9, 2024 22:27
@@ -10,6 +12,167 @@ import (
"github.com/tonistiigi/go-csvvalue"
)

type Attests []*Attest
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These types with ToPB/String/(Un)Marshal*/FromToCty are good candidates for unit tests. Some part of the helpers can probably be shared. I'm worried about cases where somebody makes a change in one of these functions but forgets to make a matching change in another.

@crazy-max crazy-max added this to the v0.20.0 milestone Dec 17, 2024
@jsternberg jsternberg force-pushed the bake-composable-attributes-attests branch from 86061dd to 14ce964 Compare December 18, 2024 17:01
Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
@tonistiigi
Copy link
Member

We can leave the unit tests for follow-up as it contains fields not in this PR.

@tonistiigi tonistiigi merged commit 5c5bc51 into docker:master Dec 18, 2024
122 checks passed
@jsternberg jsternberg deleted the bake-composable-attributes-attests branch December 18, 2024 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants