Skip to content

Commit 0580724

Browse files
authored
With go 1.18, we must use go install for a binary (#1726)
The format "go install github.com/kyoh86/richgo@latest" will work with go 1.16 and higher. It will not work with go 1.15. However, since installing "richgo" is only required for people who want to run the go tests for the Cobra project itself, I feel it is ok to require go 1.16 or higher in this case. Signed-off-by: Marc Khouzam <[email protected]> Signed-off-by: Marc Khouzam <[email protected]>
1 parent 2a7647f commit 0580724

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ $(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://insta
66
endif
77

88
ifeq (, $(shell which richgo))
9-
$(warning "could not find richgo in $(PATH), run: go get github.com/kyoh86/richgo")
9+
$(warning "could not find richgo in $(PATH), run: go install github.com/kyoh86/richgo@latest")
1010
endif
1111

1212
.PHONY: fmt lint test install_deps clean

0 commit comments

Comments
 (0)