Skip to content

Commit

Permalink
Fix-brew-install (#635)
Browse files Browse the repository at this point in the history
* returned cli-package target (for homebrew)
  • Loading branch information
ATGardner authored Nov 7, 2022
1 parent 8111859 commit f20e1a1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VERSION=v0.1.2
VERSION=v0.1.3

OUT_DIR=dist
YEAR?=$(shell date +"%Y")
Expand Down Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion pkg/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit f20e1a1

Please sign in to comment.