Skip to content

Commit

Permalink
added more arch support - 0.18.4 release prep
Browse files Browse the repository at this point in the history
  • Loading branch information
clubanderson committed Apr 19, 2024
1 parent c9edfec commit a5e78cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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/...
Expand Down
2 changes: 1 addition & 1 deletion pkg/common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
6 changes: 3 additions & 3 deletions pkg/helpers/labeler-helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit a5e78cb

Please sign in to comment.