Skip to content

Commit

Permalink
last commit made make binaries fail
Browse files Browse the repository at this point in the history
  • Loading branch information
kzys committed Nov 21, 2023
1 parent 0336726 commit dd5c2fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cmd/buildctl/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,11 +127,11 @@ func read(r io.Reader, clicontext *cli.Context) (*llb.Definition, error) {
dgst := digest.FromBytes(dt)
opMetadata, ok := def.Metadata[dgst]
if !ok {
opMetadata = pb.OpMetadata{}
opMetadata = &pb.OpMetadata{}
}
c := llb.Constraints{Metadata: opMetadata}
c := llb.Constraints{Metadata: *opMetadata}
llb.IgnoreCache(&c)
def.Metadata[dgst] = c.Metadata
def.Metadata[dgst] = &c.Metadata
}
}
return def, nil
Expand Down
2 changes: 1 addition & 1 deletion cmd/buildctl/debug/dumpllb.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ func loadLLB(r io.Reader) ([]llbOp, error) {
return nil, errors.Wrap(err, "failed to parse op")
}
dgst := digest.FromBytes(dt)
ent := llbOp{Op: op, Digest: dgst, OpMetadata: def.Metadata[dgst]}
ent := llbOp{Op: op, Digest: dgst, OpMetadata: *def.Metadata[dgst]}
ops = append(ops, ent)
}
return ops, nil
Expand Down

0 comments on commit dd5c2fa

Please sign in to comment.