cobra icon indicating copy to clipboard operation
cobra copied to clipboard

With go 1.18, we must use go install for a binary

Open marckhouzam opened this issue 2 years ago • 0 comments

When using go 1.18, the format "go install github.com/kyoh86/richgo@latest" is needed (go get no longer works).

This PR simply updates the warning printed by the Makefile to use "go install" instead of "go get".

Note that "go install github.com/kyoh86/richgo@latest" works with go 1.16 and higher but does 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 focus on go 1.16 or higher in this case.

@umarcor you setup richgo, what do you say?

marckhouzam avatar Jun 13 '22 00:06 marckhouzam