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 e2838b6 commit d762af6Copy full SHA for d762af6
cmd/fetch.go
@@ -37,7 +37,8 @@ var (
37
"linux": {"linux64"},
38
}
39
stopAliases = map[string][]string{
40
- "amd64": {"arm"},
+ "amd64": {"arm"},
41
+ "windows": {"darwin"},
42
43
44
// fetchCmd represents the fetch command
@@ -211,6 +212,11 @@ func findMatching(toolName string, assets []types.Asset) *types.Asset {
211
212
mi = !strings.Contains(matching[i].Name, ".")
213
mj = !strings.Contains(matching[j].Name, ".")
214
215
+ if mi == mj {
216
+ // prefer non archive files
217
+ mi = strings.HasSuffix(matching[i].Name, defaultFileExtension())
218
+ mj = strings.HasSuffix(matching[j].Name, defaultFileExtension())
219
+ }
220
if mi == mj {
221
return true
222
0 commit comments