1
0
mirror of https://github.com/go-task/task.git synced 2025-01-14 04:35:50 +02:00

Update install documentation after switch to Go Modules

This commit is contained in:
Andrey Nering 2018-11-10 20:10:44 -02:00
parent 5327d702f8
commit 54666221a4

View File

@ -27,12 +27,35 @@ sudo snap install task
## Go
If you have a [Go][go] environment setup, you can simply run:
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
means you may have trouble compiling it on older Go versions.
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
git clone https://github.com/go-task/task
cd task
# compiling binary to $GOPATH/bin
go install -v
# compiling it to another location
# use -o ./task.exe on Windows
go build -v -o ./task ./cmd/task
```
Both methods requires having the [Go][go] environment properly setup locally.
## Install script
We also have a [install script][installscript], which is very useful on