(candidate pluginFileInfo, current pluginFileInfo)
| 422 | } |
| 423 | |
| 424 | func pluginFilePreferred(candidate pluginFileInfo, current pluginFileInfo) bool { |
| 425 | if strings.TrimSpace(current.Path) == "" { |
| 426 | return true |
| 427 | } |
| 428 | if candidate.Version == "" { |
| 429 | return false |
| 430 | } |
| 431 | if current.Version == "" { |
| 432 | return true |
| 433 | } |
| 434 | return sdkpluginstore.UpdateAvailable(current.Version, candidate.Version) |
| 435 | } |
| 436 | |
| 437 | func pluginExtension(goos string) string { |
| 438 | switch strings.ToLower(strings.TrimSpace(goos)) { |