From d443f2feb2f5b787a1472d5ed28f1e80b660bbb4 Mon Sep 17 00:00:00 2001 From: Tiago Ilieve Date: Thu, 28 Dec 2023 01:14:52 -0300 Subject: [PATCH] Fix k9s download --- tables/arch.go | 4 ++-- tools/asset_test.go | 4 ++-- tools/runtime_test.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tables/arch.go b/tables/arch.go index 17e64ad..e11d160 100644 --- a/tables/arch.go +++ b/tables/arch.go @@ -40,10 +40,10 @@ var Arch = map[string]map[string]map[string]string{ }, K9s: { "darwin": { - "amd64": "x86_64", + "amd64": "amd64", }, "linux": { - "amd64": "x86_64", + "amd64": "amd64", "arm64": "arm64", }, }, diff --git a/tools/asset_test.go b/tools/asset_test.go index 97ba3d7..a10ee37 100644 --- a/tools/asset_test.go +++ b/tools/asset_test.go @@ -188,8 +188,8 @@ func (s *AssetTestSuite) TestName() { name: K9s, arch: "amd64", os: "linux", - version: "v0.25.4", - filename: "k9s_Linux_x86_64.tar.gz", + version: "v0.30.4", + filename: "k9s_Linux_amd64.tar.gz", }, { name: UPX, diff --git a/tools/runtime_test.go b/tools/runtime_test.go index cea5677..e770f4a 100644 --- a/tools/runtime_test.go +++ b/tools/runtime_test.go @@ -172,13 +172,13 @@ func (s *RuntimeTestSuite) TestK9sRuntime() { { arch: "amd64", os: "linux", - archOut: "x86_64", + archOut: "amd64", osOut: "Linux", }, { arch: "amd64", os: "darwin", - archOut: "x86_64", + archOut: "amd64", osOut: "Darwin", }, }