1
0
mirror of https://github.com/go-task/task.git synced 2025-01-28 05:36:18 +02:00

Docs: Advice using Go Modules instead of GOPATH

This commit is contained in:
Andrey Nering 2019-10-24 23:46:29 -03:00
parent 4162b5f41d
commit b9e092674e

View File

@ -43,18 +43,13 @@ may take some time until it's available on Scoop.
## Go
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
means you may have trouble compiling it on older Go versions.
means you may have trouble compiling it on older Go versions or using
`$GOPATH`.
For CI environments we recommend using the [Install Script](#install-script)
instead, which is faster and more stable, since it'll just download the latest
released binary, instead of compiling the edge (master branch) version.
Installing in your `$GOPATH`:
```bash
go get -u -v github.com/go-task/task/cmd/task
```
Installing in another directory:
```bash
@ -62,7 +57,7 @@ git clone https://github.com/go-task/task
cd task
# compiling binary to $GOPATH/bin
go install -v
go install -v ./cmd/task
# compiling it to another location
# use -o ./task.exe on Windows