Skip to content

Commit 8d90f24

Browse files
yaml order matters
1 parent 7ed6145 commit 8d90f24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gen/main.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ func main() {
3131
os.Exit(1)
3232
}
3333

34+
if len(yamlPaths) > 1 && filepath.Base(yamlPaths[0]) != "webgpu.yml" {
35+
panic(`"webgpu.yml" must be the first sequence in the order`)
36+
}
37+
3438
if err := ValidateYamls(schemaPath, yamlPaths); err != nil {
3539
panic(err)
3640
}

0 commit comments

Comments
 (0)