vendor: update buildkit to v0.32.0-rc1

Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2026-07-22 15:27:47 -07:00
parent efd9aa1dea
commit 0cf7592d41
464 changed files with 19941 additions and 15772 deletions
+9 -13
View File
@@ -105,11 +105,11 @@ func parseSLSA1Provenance(dt []byte, logf func(logrus.Level, string)) (*ImagePro
prv.InvocationID = md.InvocationID
prv.StartedOn = formatProvenanceTime(md.StartedOn)
prv.FinishedOn = formatProvenanceTime(md.FinishedOn)
prv.Reproducible = boolPtr(md.Reproducible)
prv.Hermetic = boolPtr(md.Hermetic)
prv.Reproducible = new(md.Reproducible)
prv.Hermetic = new(md.Hermetic)
prv.Completeness = &ImageProvenanceCompleteness{
Parameters: boolPtr(md.Completeness.Request),
Materials: boolPtr(md.Completeness.ResolvedDependencies),
Parameters: new(md.Completeness.Request),
Materials: new(md.Completeness.ResolvedDependencies),
}
}
@@ -143,12 +143,12 @@ func parseSLSA02Provenance(dt []byte, logf func(logrus.Level, string)) (*ImagePr
prv.InvocationID = md.BuildInvocationID
prv.StartedOn = formatProvenanceTime(md.BuildStartedOn)
prv.FinishedOn = formatProvenanceTime(md.BuildFinishedOn)
prv.Reproducible = boolPtr(md.Reproducible)
prv.Hermetic = boolPtr(md.Hermetic)
prv.Reproducible = new(md.Reproducible)
prv.Hermetic = new(md.Hermetic)
prv.Completeness = &ImageProvenanceCompleteness{
Parameters: boolPtr(md.Completeness.Parameters),
Environment: boolPtr(md.Completeness.Environment),
Materials: boolPtr(md.Completeness.Materials),
Parameters: new(md.Completeness.Parameters),
Environment: new(md.Completeness.Environment),
Materials: new(md.Completeness.Materials),
}
}
@@ -197,10 +197,6 @@ func rawMaterialsFromSLSA02(materials []slsa02.ProvenanceMaterial, logf func(log
return out
}
func boolPtr(v bool) *bool {
return &v
}
func formatProvenanceTime(t *time.Time) string {
if t == nil {
return ""
+1 -5
View File
@@ -904,7 +904,7 @@ decision := {
`),
}},
Env: Env{
Args: map[string]*string{"MODE": stringPtr("prod")},
Args: map[string]*string{"MODE": new("prod")},
Filename: "Dockerfile",
Target: "release",
},
@@ -988,10 +988,6 @@ decision := {
require.ErrorContains(t, err, `unknown policy cap "exec.unknown"`)
}
func stringPtr(v string) *string {
return &v
}
func mustMarshalImageConfig(t *testing.T, img ocispecs.Image) []byte {
t.Helper()
dt, err := json.Marshal(img)