From c34ee9c1f9b9b3effb18b429103b3eae7479f806 Mon Sep 17 00:00:00 2001 From: Jamie Edge Date: Sun, 4 Apr 2021 17:30:42 +0100 Subject: [PATCH 1/2] 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. From 6f3d108c1ed36c14ec530da8d8270fd4120789bc Mon Sep 17 00:00:00 2001 From: Jamie Edge Date: Sun, 4 Apr 2021 17:31:41 +0100 Subject: [PATCH 2/2] Updated the install script documentation. --- docs/installation.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/installation.md b/docs/installation.md index 73074bd5..b74a3e73 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -68,9 +68,9 @@ The `task_checksums.txt` file contains the SHA-256 checksum for each file. #### **Install Script** -We also have a [install script][installscript], which is very useful on -scenarios like CIs. Many thanks to [GoDownloader][godownloader] for allowing -easily generating this script. +We also have an [install script][installscript] which is very useful in +scenarios like CI. Many thanks to [GoDownloader][godownloader] for enabling the +easy generation of this script. ```bash # For Default Installation to ./bin with debug logging