Commit Graph

4 Commits

Author SHA1 Message Date
Tonis Tiigi
d1a3df310d llbsolver: fix recompute test and avoid struct copy
Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com>
2024-12-03 12:00:38 -08:00
Jonathan A. Sternberg
9f65f8c1fa gateway: ensure llb digests are deterministic when sent by frontends
This ensures different valid protobuf serializations that are sent by
frontends will be rewritten into digests that are normalized for the
buildkit solver.

The most recent example of this is that older frontends would generate
protobuf with gogo and the newer buildkit is using the google protobuf
library. These produce different serializations and cause the solver to
think that identical operations are actually different.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-11-14 16:12:28 -06:00
Jonathan A. Sternberg
1a3fc0aa15 protobuf: remove gogoproto
Remove gogoproto in favor of the standard protobuf compiler. This
removes any nonstandard extensions that were part of gogoproto such as
the custom types.

Signed-off-by: Jonathan A. Sternberg <jonathan.sternberg@docker.com>
2024-09-26 12:57:45 -05:00
Brian Goff
bf809b76f6 Simplify Op digest recompute
This turns the closure into a proper recursive funciton.
It also ensures there isn't a chance of infinite recursion due to
changes to op inputs.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>

fix
2022-12-13 13:02:15 -08:00