Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Update Makefile (#202)
Browse files Browse the repository at this point in the history
go get is deprecicated in 1.18
  • Loading branch information
DavidMarchant authored Jun 28, 2022
1 parent a1b20c3 commit 965f14d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ HUSKY = $(shell pwd)/bin/husky
husky: ## Download husky locally if necessary.
$(call go-get-tool,$(HUSKY),github.com/automation-co/[email protected])

# go-get-tool will 'go get' any package $2 and install it to $1.
# go-get-tool will 'go install' any package $2 and install it to $1.
PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
define go-get-tool
@[ -f $(1) ] || { \
Expand All @@ -257,7 +257,7 @@ TMP_DIR=$$(mktemp -d) ;\
cd $$TMP_DIR ;\
go mod init tmp ;\
echo "Downloading $(2)" ;\
GOBIN=$(PROJECT_DIR)/bin go get $(2) ;\
GOBIN=$(PROJECT_DIR)/bin go install $(2) ;\
rm -rf $$TMP_DIR ;\
}
endef
Expand Down

0 comments on commit 965f14d

Please sign in to comment.