Skip to content

Commit b9e0926

Browse files
committed
Docs: Advice using Go Modules instead of GOPATH
1 parent 4162b5f commit b9e0926

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

docs/installation.md

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,21 @@ may take some time until it's available on Scoop.
4343
## Go
4444

4545
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
46-
means you may have trouble compiling it on older Go versions.
46+
means you may have trouble compiling it on older Go versions or using
47+
`$GOPATH`.
4748

4849
For CI environments we recommend using the [Install Script](#install-script)
4950
instead, which is faster and more stable, since it'll just download the latest
5051
released binary, instead of compiling the edge (master branch) version.
5152

52-
Installing in your `$GOPATH`:
53-
54-
```bash
55-
go get -u -v github.com/go-task/task/cmd/task
56-
```
57-
5853
Installing in another directory:
5954

6055
```bash
6156
git clone https://github.com/go-task/task
6257
cd task
6358

6459
# compiling binary to $GOPATH/bin
65-
go install -v
60+
go install -v ./cmd/task
6661

6762
# compiling it to another location
6863
# use -o ./task.exe on Windows

0 commit comments

Comments
 (0)