From a5e78cb8573af7dc83b1bf144a8f6a1fb513bc16 Mon Sep 17 00:00:00 2001 From: Andrew Anderson Date: Fri, 19 Apr 2024 08:13:26 -0400 Subject: [PATCH] added more arch support - 0.18.4 release prep --- Makefile | 3 +++ pkg/common/common.go | 2 +- pkg/helpers/labeler-helpers.go | 6 +++--- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 865788a..669035e 100644 --- a/Makefile +++ b/Makefile @@ -10,8 +10,11 @@ run: compile: echo "Compiling for every OS and Platform" + GOOS=darwin GOARCH=amd64 go build -o bin/labeler-darwin-amd64 ./cmd/... GOOS=linux GOARCH=arm go build -o bin/labeler-linux-arm ./cmd/... + GOOS=darwin GOARCH=arm64 go build -o bin/labeler-darwin-arm64 ./cmd/... GOOS=linux GOARCH=arm64 go build -o bin/labeler-linux-arm64 ./cmd/... + GOOS=linux GOARCH=amd64 go build -o bin/labeler-linux-amd64 ./cmd/... GOOS=linux GOARCH=386 go build -o bin/labeler-linux-386 ./cmd/... GOOS=windows GOARCH=386 go build -o bin/labeler-windows-386 ./cmd/... GOOS=freebsd GOARCH=386 go build -o bin/labeler-freebsd-386 ./cmd/... diff --git a/pkg/common/common.go b/pkg/common/common.go index 3d35683..f771113 100644 --- a/pkg/common/common.go +++ b/pkg/common/common.go @@ -24,7 +24,7 @@ import ( "k8s.io/client-go/rest" ) -var Version = "0.18.3" +var Version = "0.18.4" // Plugin interface type Plugin interface { diff --git a/pkg/helpers/labeler-helpers.go b/pkg/helpers/labeler-helpers.go index 4625799..7769397 100644 --- a/pkg/helpers/labeler-helpers.go +++ b/pkg/helpers/labeler-helpers.go @@ -79,15 +79,15 @@ func AliasRun(args []string, p c.ParamsStruct) error { parts := strings.Split(arg, "=") var result string if len(parts) > 2 { - log.Printf("labeler.go: arg: %v\n", arg) - log.Printf("labeler.go: len parts: %v\n", len(parts)) + // log.Printf("labeler.go: arg: %v\n", arg) + // log.Printf("labeler.go: len parts: %v\n", len(parts)) for i := 1; i < len(parts); i++ { result += parts[i] if i < len(parts)-1 { result += "=" } } - log.Printf("labeler.go: result: %v\n", result) + // log.Printf("labeler.go: result: %v\n", result) p.Params[parts[0][2:]] = result } else { p.Params[parts[0][2:]] = parts[1]