Skip to content

Commit

Permalink
Revert "fix flyctl release name"
Browse files Browse the repository at this point in the history
This reverts commit 9cb7222.
  • Loading branch information
nitishkumar71 authored Jul 17, 2024
1 parent 1219496 commit 5386e4c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions pkg/get/get_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5364,13 +5364,13 @@ func Test_DownloadFlyctl(t *testing.T) {
os: "darwin",
arch: arch64bit,
version: version,
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_macOS_amd64.tar.gz",
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_macOS_x86_64.tar.gz",
},
{
os: "linux",
arch: arch64bit,
version: version,
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Linux_amd64.tar.gz",
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Linux_x86_64.tar.gz",
},
{
os: "linux",
Expand All @@ -5382,7 +5382,7 @@ func Test_DownloadFlyctl(t *testing.T) {
os: "ming",
arch: arch64bit,
version: version,
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Windows_amd64.zip",
url: "https://github.com/superfly/flyctl/releases/download/v0.0.388/flyctl_0.0.388_Windows_x86_64.zip",
},
}

Expand Down
4 changes: 1 addition & 3 deletions pkg/get/tools.go
Original file line number Diff line number Diff line change
Expand Up @@ -3017,9 +3017,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}}
{{$ext = ".zip"}}
{{- end -}}
{{- if eq .Arch "x86_64" -}}
{{$arch = "amd64"}}
{{- else if or (eq .Arch "aarch64") (eq .Arch "arm64") -}}
{{- if eq .Arch "aarch64" -}}
{{$arch = "arm64"}}
{{- end -}}
Expand Down

0 comments on commit 5386e4c

Please sign in to comment.