mirror of
https://github.com/FiloSottile/mkcert.git
synced 2025-10-14 00:41:40 +08:00
README: use $GOBIN instead of $GOPATH/bin (#168)
$GOPATH/bin works in the simple cases, but will break if the user specifies their own $GOBIN, or if their $GOPATH has multiple elements. This form is also simpler. Even if the user doesn't specify their custom $GOBIN, 'go env GOBIN' will return the correct default.
This commit is contained in:

committed by
Filippo Valsorda

parent
72ec55f07f
commit
ff17118210
@@ -73,7 +73,7 @@ or build from source (requires Go 1.10+)
|
|||||||
|
|
||||||
```
|
```
|
||||||
go get -u github.com/FiloSottile/mkcert
|
go get -u github.com/FiloSottile/mkcert
|
||||||
$(go env GOPATH)/bin/mkcert
|
$(go env GOBIN)/mkcert
|
||||||
```
|
```
|
||||||
|
|
||||||
or use [the pre-built binaries](https://github.com/FiloSottile/mkcert/releases).
|
or use [the pre-built binaries](https://github.com/FiloSottile/mkcert/releases).
|
||||||
|
Reference in New Issue
Block a user