From ff43f3ba0214071bf2d9d0bc6546915a838adb2c Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Fri, 17 Jan 2025 17:27:13 -0800 Subject: [PATCH] README: fix EL8 go-md2man install Currently EL8 comes with Go 1.22.x, which means "go install" (rather than "go get") should be used. Also, - there is no need to set GOPATH; - `go env GOPATH` can be used to determine the built-in default. Tested on AlmaLinux 8.10. Signed-off-by: Kir Kolyshkin --- README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 7a4d60913a..261061a432 100644 --- a/README.md +++ b/README.md @@ -76,9 +76,8 @@ installed with: ```console $ sudo yum --enablerepo='*' install -y golang -$ export GOPATH=$HOME/go -$ go get github.com/cpuguy83/go-md2man -$ export PATH=$PATH:$GOPATH/bin +$ go install github.com/cpuguy83/go-md2man@latest +$ export PATH=$PATH:$(go env GOPATH)/bin ``` ### Ubuntu