Debian Codegraph @

script/bootstrap

raw
1 #!/usr/bin/env bash
2
3 set -exuo pipefail
4
5 # Install golangci-lint
6 curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh -s -- -b "${GOPATH}/bin" v1.38.0
7
8 # Install goreleaser.
9 go install github.com/goreleaser/[email protected]
10
11 # Install godownloader.
12 #
13 # This doesn't have an install script like the others and can't be installed
14 # with `go install` like below because the go.mod has a replace directive. So
15 # we install it the old-fashioned way by cloning and installing from the
16 # repository.
17 workdir="$(mktemp -d)"
18 projectdir="${workdir}/godownloader"
19 git clone --depth 1 --branch v0.1.0 https://github.com/goreleaser/godownloader.git "${projectdir}"
20 (cd "${projectdir}" && go install .)
21
22 # gofumports for stricter formatting.
23 go install mvdan.cc/gofumpt/[email protected]
24
25 # pigeon for PEG parser generation.
26 go install github.com/mna/[email protected]
27
28 # mathfmt for unicode math formatting.
29 go install github.com/mmcloughlin/[email protected]
30
31 # bib for bibliography references.
32 go install github.com/mmcloughlin/[email protected]
33
34 # covertool for merging coverage reports.
35 go install github.com/dlespiau/[email protected]