From c34ee9c1f9b9b3effb18b429103b3eae7479f806 Mon Sep 17 00:00:00 2001 From: Jamie Edge Date: Sun, 4 Apr 2021 17:30:42 +0100 Subject: [PATCH] Updated the Go modules installation documentation for Go 1.16. --- docs/installation.md | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index cd6d5d7c..73074bd5 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -107,29 +107,27 @@ This installation method is community owned. First, make sure you have [Go][go] properly installed and setup. -You can easily install it globally by running: +You can easily install the latest release globally by running: ```bash -env GO111MODULE=on go get -u github.com/go-task/task/v3/cmd/task +go install github.com/go-task/task/v3/cmd/task@latest ``` Or you can install into another directory: ```bash -git clone https://github.com/go-task/task -cd task +env GOBIN=/bin go install github.com/go-task/task/v3/cmd/task@latest +``` -# Compiling binary to $GOPATH/bin -go install -v ./cmd/task +If using Go 1.15 or earlier, instead use: -# Compiling it to another location. -# Use -o ./task.exe on Windows. -go build -v -o ./task ./cmd/task +```bash +env GO111MODULE=on go get -u github.com/go-task/task/v3/cmd/task@latest ``` > For CI environments we recommend using the [Install Script](#get-the-binary) > instead, which is faster and more stable, since it'll just download the latest -> released binary, instead of compiling the edge (master branch) version. +> released binary.