You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
return specs.Platform{}, fmt.Errorf("%q is an invalid OS component of %q: OSAndVersion specifier component must match %q: %w", part, specifier, osAndVersionRe.String(), errInvalidArgument)
236
+
// First element is <os>[(<OSVersion>[+<OSFeature>]*)]
237
+
osOptions:=osRe.FindStringSubmatch(part)
238
+
ifosOptions==nil {
239
+
return specs.Platform{}, fmt.Errorf("%q is an invalid OS component of %q: OSAndVersion specifier component must match %q: %w", part, specifier, osRe.String(), errInvalidArgument)
238
240
}
239
241
240
-
p.OS=normalizeOS(osVer[1])
241
-
p.OSVersion=osVer[2]
242
+
p.OS=normalizeOS(osOptions[1])
243
+
p.OSVersion=osOptions[2]
244
+
ifosOptions[3] !="" {
245
+
p.OSFeatures=strings.Split(osOptions[3][1:], "+")
246
+
}
242
247
} else {
243
248
if!specifierRe.MatchString(part) {
244
249
return specs.Platform{}, fmt.Errorf("%q is an invalid component of %q: platform specifier component must match %q: %w", part, specifier, specifierRe.String(), errInvalidArgument)
0 commit comments