File tree 2 files changed +8
-8
lines changed
2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -163,17 +163,17 @@ func (f *Flavour) isCompatibleWith(osName, osArch string) bool {
163
163
return regexpArmLinux .MatchString (f .OS )
164
164
case "linux,amd64" :
165
165
return regexpAmd64 .MatchString (f .OS )
166
- case "linux,i386 " :
166
+ case "linux,386 " :
167
167
return regexpi386 .MatchString (f .OS )
168
- case "windows,i386 " , "windows,amd64" :
168
+ case "windows,386 " , "windows,amd64" :
169
169
return regexpWindows .MatchString (f .OS )
170
170
case "darwin,amd64" :
171
171
return regexpmac32Bit .MatchString (f .OS ) || regexpMac64Bit .MatchString (f .OS )
172
- case "darwin,i386 " :
172
+ case "darwin,386 " :
173
173
return regexpmac32Bit .MatchString (f .OS )
174
174
case "freebsd,arm" :
175
175
return regexpArmBSD .MatchString (f .OS )
176
- case "freebsd,i386 " , "freebsd,amd64" :
176
+ case "freebsd,386 " , "freebsd,amd64" :
177
177
genericFreeBSDexp := regexp .MustCompile (osArch + "%s-freebsd[0-9]*" )
178
178
return genericFreeBSDexp .MatchString (f .OS )
179
179
}
Original file line number Diff line number Diff line change @@ -28,15 +28,15 @@ func TestFlavorCompatibility(t *testing.T) {
28
28
Os string
29
29
Arch string
30
30
}
31
- windowsi386 := & os {"windows" , "i386 " }
31
+ windowsi386 := & os {"windows" , "386 " }
32
32
windowsx8664 := & os {"windows" , "amd64" }
33
- linuxi386 := & os {"linux" , "i386 " }
33
+ linuxi386 := & os {"linux" , "386 " }
34
34
linuxamd64 := & os {"linux" , "amd64" }
35
35
linuxarm := & os {"linux" , "arm" }
36
36
linuxarmbe := & os {"linux" , "armbe" }
37
- darwini386 := & os {"darwin" , "i386 " }
37
+ darwini386 := & os {"darwin" , "386 " }
38
38
darwinamd646 := & os {"darwin" , "amd64" }
39
- freebsdi386 := & os {"freebsd" , "i386 " }
39
+ freebsdi386 := & os {"freebsd" , "386 " }
40
40
freebsdamd64 := & os {"freebsd" , "amd64" }
41
41
oses := []* os {
42
42
windowsi386 ,
You can’t perform that action at this time.
0 commit comments