buildx/bake
Justin Chadwell 03885ec9f1 hclparser: strip out blocks for json files
Body.JustAttributes cannot distinguish between blocks and attributes for
JSON files, so the variable block could be included in the list of
attributes returned.

This patch ensures that JSON and HCL files behave the same way by
removing all known block types first, from the provided config schema
and then from a generated definitions schema.

Fixes 

Signed-off-by: Justin Chadwell <me@jedevc.com>
..
hclparser hclparser: strip out blocks for json files
bake.go bake: fix skipped group when already visited by another one
bake_test.go bake: fix skipped group when already visited by another one
compose.go bake: support compose build secrets
compose_test.go bake: support compose build secrets
hcl.go bake: restrict target name
hcl_test.go hclparser: strip out blocks for json files
remote.go bake: fix protocol detection