2018-09-22 23:44:24 +02:00
|
|
|
# Installation
|
|
|
|
|
2018-10-07 23:34:03 +02:00
|
|
|
## Binary
|
2018-09-22 23:44:24 +02:00
|
|
|
|
2018-10-07 23:34:03 +02:00
|
|
|
Or you can download the binary from the [releases][releases] page and add to
|
|
|
|
your $PATH. DEB and RPM packages are also available.
|
|
|
|
The `task_checksums.txt` file contains the sha256 checksum for each file.
|
2018-09-22 23:44:24 +02:00
|
|
|
|
|
|
|
## Homebrew
|
|
|
|
|
2019-07-21 16:03:20 +02:00
|
|
|
If you're on macOS or Linux and have [Homebrew][homebrew] installed, getting
|
|
|
|
Task is as simple as running:
|
2018-09-22 23:44:24 +02:00
|
|
|
|
|
|
|
```bash
|
|
|
|
brew install go-task/tap/go-task
|
|
|
|
```
|
|
|
|
|
2019-07-21 16:03:20 +02:00
|
|
|
> This installation method is only currently supported on amd64 architectures.
|
|
|
|
|
2018-09-22 23:44:24 +02:00
|
|
|
## Snap
|
|
|
|
|
|
|
|
Task is available for [Snapcraft][snapcraft], but keep in mind that your
|
|
|
|
Linux distribution should allow classic confinement for Snaps to Task work
|
|
|
|
right:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
sudo snap install task
|
|
|
|
```
|
|
|
|
|
2018-12-06 15:21:03 +02:00
|
|
|
## Scoop
|
|
|
|
|
|
|
|
If you're on Windows and have [Scoop][scoop] installed, use `extras` bucket
|
|
|
|
to install Task like:
|
|
|
|
|
|
|
|
```cmd
|
|
|
|
scoop bucket add extras
|
|
|
|
scoop install task
|
|
|
|
```
|
|
|
|
|
2018-12-24 18:39:53 +02:00
|
|
|
This installation method is community owned. After a new release of Task, it
|
|
|
|
may take some time until it's available on Scoop.
|
|
|
|
|
2018-10-07 23:34:03 +02:00
|
|
|
## Go
|
|
|
|
|
2018-11-11 00:10:44 +02:00
|
|
|
Task now uses [Go Modules](https://github.com/golang/go/wiki/Modules), which
|
2019-10-25 04:46:29 +02:00
|
|
|
means you may have trouble compiling it on older Go versions or using
|
|
|
|
`$GOPATH`.
|
2018-11-11 00:10:44 +02:00
|
|
|
|
|
|
|
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 another directory:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/go-task/task
|
|
|
|
cd task
|
|
|
|
|
|
|
|
# compiling binary to $GOPATH/bin
|
2019-10-25 04:46:29 +02:00
|
|
|
go install -v ./cmd/task
|
2018-11-11 00:10:44 +02:00
|
|
|
|
|
|
|
# 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.
|
|
|
|
|
2018-09-22 23:44:24 +02:00
|
|
|
## Install script
|
|
|
|
|
|
|
|
We also have a [install script][installscript], which is very useful on
|
2019-01-02 17:25:58 +02:00
|
|
|
scenarios like CIs. Many thanks to [godownloader][godownloader] for allowing
|
2018-10-07 23:34:03 +02:00
|
|
|
easily generating this script.
|
2018-09-22 23:44:24 +02:00
|
|
|
|
|
|
|
```bash
|
2019-03-05 04:23:30 +02:00
|
|
|
curl -sL https://taskfile.dev/install.sh | sh
|
2018-09-22 23:44:24 +02:00
|
|
|
```
|
|
|
|
|
2018-10-07 23:34:03 +02:00
|
|
|
> This method will download the binary on the local `./bin` directory by default.
|
2018-09-22 23:44:24 +02:00
|
|
|
|
2018-10-07 23:34:03 +02:00
|
|
|
[go]: https://golang.org/
|
2018-09-22 23:44:24 +02:00
|
|
|
[snapcraft]: https://snapcraft.io/
|
|
|
|
[homebrew]: https://brew.sh/
|
|
|
|
[installscript]: https://github.com/go-task/task/blob/master/install-task.sh
|
|
|
|
[releases]: https://github.com/go-task/task/releases
|
|
|
|
[godownloader]: https://github.com/goreleaser/godownloader
|
2018-12-06 15:21:03 +02:00
|
|
|
[scoop]: https://scoop.sh/
|