Skip to content

Commit 5466622

Browse files
committed
Update install documentation after switch to Go Modules
1 parent 5327d70 commit 5466622

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

docs/installation.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,35 @@ sudo snap install task
2727

2828
## Go
2929

30-
If you have a [Go][go] environment setup, you can simply run:
30+
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
31+
means you may have trouble compiling it on older Go versions.
32+
33+
For CI environments we recommend using the [Install Script](#install-script)
34+
instead, which is faster and more stable, since it'll just download the latest
35+
released binary, instead of compiling the edge (master branch) version.
36+
37+
Installing in your `$GOPATH`:
3138

3239
```bash
3340
go get -u -v github.com/go-task/task/cmd/task
3441
```
3542

43+
Installing in another directory:
44+
45+
```bash
46+
git clone https://github.com/go-task/task
47+
cd task
48+
49+
# compiling binary to $GOPATH/bin
50+
go install -v
51+
52+
# compiling it to another location
53+
# use -o ./task.exe on Windows
54+
go build -v -o ./task ./cmd/task
55+
```
56+
57+
Both methods requires having the [Go][go] environment properly setup locally.
58+
3659
## Install script
3760

3861
We also have a [install script][installscript], which is very useful on

0 commit comments

Comments
 (0)