Skip to content

Commit 20f8d55

Browse files
committed
add tool download for m1
1 parent 470e2a4 commit 20f8d55

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

tools/download.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ type index struct {
6767
var systems = map[string]string{
6868
"linuxamd64": "x86_64-linux-gnu",
6969
"linux386": "i686-linux-gnu",
70-
"darwinamd64": "apple-darwin",
70+
"darwinamd64": "i686-apple-darwin",
71+
"darwinarm64": "arm64-apple-darwin",
7172
"windows386": "i686-mingw32",
7273
"windowsamd64": "i686-mingw32",
7374
"linuxarm": "arm-linux-gnueabihf",

tools/download_test.go

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ func TestDownloadCorrectPlatform(t *testing.T) {
3838
{"linux", "amd64", "x86_64-linux-gnu"},
3939
{"linux", "386", "i686-linux-gnu"},
4040
{"darwin", "amd64", "x86_64-apple-darwin"},
41+
{"darwin", "arm64", "arm64-apple-darwin"},
4142
{"windows", "386", "i686-mingw32"},
4243
{"windows", "amd64", "i686-mingw32"},
4344
{"linux", "arm", "arm-linux-gnueabihf"},

0 commit comments

Comments
 (0)