We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1b5a02 commit 2535857Copy full SHA for 2535857
validate/validate.go
@@ -424,7 +424,11 @@ func (v *Validator) CheckPlatform() (msgs []string) {
424
}
425
426
427
- if v.platform != "windows" {
+ if v.platform == "windows" {
428
+ if v.spec.Windows == nil {
429
+ msgs = append(msgs, "'windows' MUST be set when platform is `windows`")
430
+ }
431
+ } else {
432
if v.spec.Windows != nil {
433
msgs = append(msgs, fmt.Sprintf("'windows' MUST NOT be set when target platform is %q", v.platform))
434
0 commit comments