Skip to content

Commit 5386e4c

Browse files
Revert "fix flyctl release name"
This reverts commit 9cb7222.
1 parent 1219496 commit 5386e4c

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

pkg/get/get_test.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -5364,13 +5364,13 @@ func Test_DownloadFlyctl(t *testing.T) {
53645364
os: "darwin",
53655365
arch: arch64bit,
53665366
version: version,
5367-
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_macOS_amd64.tar.gz",
5367+
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_macOS_x86_64.tar.gz",
53685368
},
53695369
{
53705370
os: "linux",
53715371
arch: arch64bit,
53725372
version: version,
5373-
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Linux_amd64.tar.gz",
5373+
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Linux_x86_64.tar.gz",
53745374
},
53755375
{
53765376
os: "linux",
@@ -5382,7 +5382,7 @@ func Test_DownloadFlyctl(t *testing.T) {
53825382
os: "ming",
53835383
arch: arch64bit,
53845384
version: version,
5385-
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Windows_amd64.zip",
5385+
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Windows_x86_64.zip",
53865386
},
53875387
}
53885388

pkg/get/tools.go

+1-3
Original file line numberDiff line numberDiff line change
@@ -3017,9 +3017,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
30173017
{{$ext = ".zip"}}
30183018
{{- end -}}
30193019
3020-
{{- if eq .Arch "x86_64" -}}
3021-
{{$arch = "amd64"}}
3022-
{{- else if or (eq .Arch "aarch64") (eq .Arch "arm64") -}}
3020+
{{- if eq .Arch "aarch64" -}}
30233021
{{$arch = "arm64"}}
30243022
{{- end -}}
30253023

0 commit comments

Comments
 (0)