Skip to content

Commit

Permalink
README: fix EL8 go-md2man install
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
kolyshkin committed Jan 18, 2025
1 parent 8d17a91 commit ff43f3b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ff43f3b

Please sign in to comment.