diff --git a/pkg/get/get_test.go b/pkg/get/get_test.go index 55b708b00..73c405f1b 100644 --- a/pkg/get/get_test.go +++ b/pkg/get/get_test.go @@ -7658,49 +7658,56 @@ func Test_DownloadKeploy(t *testing.T) { tool := getTool(name, tools) const toolVersion = "v2.3.0" + // keploy_darwin_all.tar.gz + // 20.4 MB + // 1 hour ago + // keploy_linux_amd64.tar.gz + // 12.4 MB + // 1 hour ago + // keploy_linux_arm64.tar.gz + // 11.4 MB + // 1 hour ago + // keploy_windows_amd64.tar.gz + // 10.4 MB + // 1 hour ago + // keploy_windows_arm64.tar.gz tests := []test{ { os: "linux", arch: arch64bit, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_linux_amd64.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_linux_amd64.tar.gz", }, { os: "linux", arch: archARM64, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_linux_arm64.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_linux_arm64.tar.gz", }, { os: "darwin", - arch: archDarwinARM64, + arch: arch64bit, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_darwin_all.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_darwin_all.tar.gz", }, { - os: "ming", - arch: archARM64, + os: "darwin", + arch: archDarwinARM64, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_windows_amd64.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_darwin_all.tar.gz", }, { os: "ming", arch: arch64bit, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_Windows_x86_64.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_amd64.zip", }, { os: "ming", - arch: "armv6l", - version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_Windows_armv6.tar.gz", - }, - { - os: "ming", - arch: archARM7, + arch: archARM64, version: toolVersion, - url: "https://github.com/keploy/keploy/releases/download/v2.3.0-beta15/keploy_Windows_armv7.tar.gz", + url: "https://github.com/keploy/keploy/releases/download/v2.3.0/keploy_windows_arm64.zip", }, } diff --git a/pkg/get/tools.go b/pkg/get/tools.go index 54af4ad26..9a2583f73 100644 --- a/pkg/get/tools.go +++ b/pkg/get/tools.go @@ -4213,6 +4213,7 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}} {{ $os := .OS }} {{ $arch := .Arch }} {{ $ext := "tar.gz" }} + {{- if eq .Arch "aarch64" -}} {{$arch = "arm64"}} {{- else if eq .Arch "arm64" -}} @@ -4220,18 +4221,19 @@ https://github.com/{{.Owner}}/{{.Repo}}/releases/download/{{.Version}}/{{.Name}} {{- else if eq .Arch "x86_64" -}} {{ $arch = "amd64" }} {{- end -}} + {{ if HasPrefix .OS "ming" -}} {{$os = "windows"}} {{$ext = "zip"}} {{- end -}} {{- if eq .OS "darwin" -}} - {{$os = "darwin_all"}} + {{$os = "darwin"}} + {{$arch = "all"}} {{- else if eq .OS "linux" -}} {{ $os = "linux" }} {{- end -}} - keploy_{{$os}}.{{$ext}} + keploy_{{$os}}_{{$arch}}.{{$ext}} `, }) - return tools }