From 5da2ff599073288b4d05b5bf365f26a842c5181a Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Thu, 3 Jul 2025 13:17:21 +0200 Subject: [PATCH] bake/hclparser/gohcl: fix typo Looks like we forked this code, including the typo. As we already modify the code to add the `//nolint`, we may as well fix the typo itself instead. https://github.com/hashicorp/hcl/blob/dfa124f3c93ff1764fda03702a7a9aa8c9db48d8/gohcl/decode_test.go#L417-L423 Signed-off-by: Sebastiaan van Stijn --- bake/hclparser/gohcl/decode_test.go | 3 +-- bake/hclparser/gohcl/schema.go | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/bake/hclparser/gohcl/decode_test.go b/bake/hclparser/gohcl/decode_test.go index a532c69a3..d534ac5e9 100644 --- a/bake/hclparser/gohcl/decode_test.go +++ b/bake/hclparser/gohcl/decode_test.go @@ -413,11 +413,10 @@ func TestDecodeBody(t *testing.T) { } `hcl:"noodle,block"` }{}), func(gotI any) bool { - //nolint:misspell // Generating two diagnostics is good enough for this one. // (one for the missing noodle block and the other for // the JSON serialization detecting the missing level of - // heirarchy for the label.) + // hierarchy for the label.) return true }, 2, diff --git a/bake/hclparser/gohcl/schema.go b/bake/hclparser/gohcl/schema.go index 53f678a72..03ced5419 100644 --- a/bake/hclparser/gohcl/schema.go +++ b/bake/hclparser/gohcl/schema.go @@ -52,8 +52,7 @@ func ImpliedBodySchema(val any) (schema *hcl.BodySchema, partial bool) { switch { case field.Type.AssignableTo(exprType): - //nolint:misspell - // If we're decoding to hcl.Expression then absense can be + // If we're decoding to hcl.Expression then absence can be // indicated via a null value, so we don't specify that // the field is required during decoding. required = false