From 56d39e619dfdce9b8205bcbccb7d9267feaf1f3a Mon Sep 17 00:00:00 2001 From: Roberto Villarreal Date: Fri, 9 May 2025 18:20:51 -0600 Subject: [PATCH] Skip case-sensitive test on Windows Signed-off-by: Roberto Villarreal --- bake/hcl_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bake/hcl_test.go b/bake/hcl_test.go index af6dff1b2..88972e8c6 100644 --- a/bake/hcl_test.go +++ b/bake/hcl_test.go @@ -4,6 +4,7 @@ import ( "fmt" "reflect" "regexp" + "runtime" "testing" hcl "github.com/hashicorp/hcl/v2" @@ -2306,6 +2307,9 @@ func TestJSONOverridePriority(t *testing.T) { }) t.Run("JSON override works with lowercase vars", func(t *testing.T) { + if runtime.GOOS == "windows" { + t.Skip("Windows case-insensitivity") + } dt := []byte(` variable "foo" { type = number @@ -2316,7 +2320,7 @@ func TestJSONOverridePriority(t *testing.T) { bar = foo } }`) - // may seem reasonable, but not supported + // may seem reasonable, but not supported (on case-sensitive systems) t.Setenv("foo_json", "9000") c, err := ParseFile(dt, "docker-bake.hcl") require.NoError(t, err)