From 16a412ce0405e79e6cd8301ccc89f98abcf82445 Mon Sep 17 00:00:00 2001 From: Pedro Tashima Date: Tue, 17 Oct 2023 12:36:38 -0300 Subject: [PATCH] remove github release --- release/rke2/rke2.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/release/rke2/rke2.go b/release/rke2/rke2.go index 95916fe5..aa82bf29 100644 --- a/release/rke2/rke2.go +++ b/release/rke2/rke2.go @@ -15,8 +15,7 @@ import ( ) const ( - goDevURL = "https://go.dev/" - goDevJSONPath = "dl/?mode=json" + goDevURL = "https://go.dev/dl/?mode=json" imageBuildBaseRepo = "image-build-base" ) @@ -25,12 +24,8 @@ type goVersionRecord struct { Stable bool `json:"stable"` } -type githubRelease struct { - Name string `json:"name"` -} - func ImageBuildBaseRelease(ctx context.Context, ghClient *github.Client) error { - versions, err := goVersions(goDevURL + goDevJSONPath) + versions, err := goVersions(goDevURL) if err != nil { return err }