Skip to content
Myr

With go 1.18, we must use go install for a binary (#1726)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

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 <marc.khouzam@gmail.com>

authored by Marc Khouzam · committed by GitHub · parent 2a7647f · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Signed-off-by: Marc Khouzam <marc.khouzam@gmail.com>

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:Makefile+1 added-1 removed
4 unmodified lines
5$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")6endif78ifeq (, $(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")10endif1112.PHONY: fmt lint test install_deps clean13
22 unmodified lines