File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 4
4
"fmt"
5
5
"reflect"
6
6
"regexp"
7
+ "runtime"
7
8
"testing"
8
9
9
10
hcl "github.com/hashicorp/hcl/v2"
@@ -2306,6 +2307,9 @@ func TestJSONOverridePriority(t *testing.T) {
2306
2307
})
2307
2308
2308
2309
t .Run ("JSON override works with lowercase vars" , func (t * testing.T ) {
2310
+ if runtime .GOOS == "windows" {
2311
+ t .Skip ("Windows case-insensitivity" )
2312
+ }
2309
2313
dt := []byte (`
2310
2314
variable "foo" {
2311
2315
type = number
@@ -2316,7 +2320,7 @@ func TestJSONOverridePriority(t *testing.T) {
2316
2320
bar = foo
2317
2321
}
2318
2322
}` )
2319
- // may seem reasonable, but not supported
2323
+ // may seem reasonable, but not supported (on case-sensitive systems)
2320
2324
t .Setenv ("foo_json" , "9000" )
2321
2325
c , err := ParseFile (dt , "docker-bake.hcl" )
2322
2326
require .NoError (t , err )
You can’t perform that action at this time.
0 commit comments