You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
buildx/bake
Justin Chadwell fbb4f4dec8 bake: avoid nesting error diagnostics
With changes to the lazy evaluation, the evaluation order is no longer
fixed - this means that we can follow long and confusing paths to get to
an error.

Because of the co-recursive nature of the lazy evaluation, we need to
take special care that the original HCL diagnostics are not discarded
and are preserved so that the original source of the error can be
detected. Preserving the full trace is not necessary, and probably not
useful to the user - all of the file that is not lazily loaded will be
eagerly loaded after all struct blocks are loaded - so the error would
be found regardless.

Signed-off-by: Justin Chadwell <me@jedevc.com>
2 years ago
..
hclparser bake: avoid nesting error diagnostics 2 years ago
bake.go lint: ban fmt.Errorf in preference of errors.Errorf 2 years ago
bake_test.go bake: support null label value 2 years ago
compose.go update github.com/compose-spec/compose-go to v1.9.0 2 years ago
compose_test.go bake: support null arg value 2 years ago
hcl.go bake: restrict target name 3 years ago
hcl_test.go bake: avoid early-exit for resolution failures 2 years ago
remote.go bake: fix loop references 2 years ago