mirror of
https://github.com/moby/buildkit.git
synced 2026-08-08 08:40:45 +00:00
provenance: do not put unique identifiers in build steps
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
This commit is contained in:
@@ -96,6 +96,13 @@ func toBuildSteps(def *pb.Definition) ([]BuildStep, map[digest.Digest]int, error
|
||||
if err := (&op).Unmarshal(dt); err != nil {
|
||||
return nil, nil, errors.Wrap(err, "failed to parse llb proto op")
|
||||
}
|
||||
if src := op.GetSource(); src != nil {
|
||||
for k := range src.Attrs {
|
||||
if k == "local.session" || k == "local.unique" {
|
||||
delete(src.Attrs, k)
|
||||
}
|
||||
}
|
||||
}
|
||||
dgst = digest.FromBytes(dt)
|
||||
ops[dgst] = &op
|
||||
defs[dgst] = dt
|
||||
|
||||
Reference in New Issue
Block a user