diff --git a/Makefile b/Makefile index 06f361ada..cd54f5d11 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION=v0.1.2 +VERSION=v0.1.3 OUT_DIR=dist YEAR?=$(shell date +"%Y") @@ -76,7 +76,10 @@ cli-local: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) @ln $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) /usr/local/bin/$(CLI_NAME)-dev .PHONY: cli-e2e -cli-e2e: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) +cli-e2e: cli-package + +.PHONY: cli-package +cli-package: $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) @cp $(OUT_DIR)/$(CLI_NAME)-$(shell go env GOOS)-$(shell go env GOARCH) $(OUT_DIR)/$(CLI_NAME) $(OUT_DIR)/$(CLI_NAME)-linux-amd64: GO_FLAGS='GOOS=linux GOARCH=amd64 CGO_ENABLED=0' diff --git a/pkg/util/util.go b/pkg/util/util.go index 39d33af44..b9d979233 100644 --- a/pkg/util/util.go +++ b/pkg/util/util.go @@ -365,7 +365,7 @@ func Retry(ctx context.Context, opts *RetryOptions) error { break } - log.G(ctx).Debug("retry: %s \n err: %s\n Function call failed, trying again", try, err.Error()) + log.G(ctx).Debugf("retry: %d \n err: %s\n Function call failed, trying again", try, err.Error()) if opts.Sleep != 0 { time.Sleep(opts.Sleep)