Skip to content

Commit

Permalink
script: switch to go install for tools (#113)
Browse files Browse the repository at this point in the history
Switches to using go install for for tools install now that the last two Go versions support it.

The tools.mod and associated sum file is no longer required.
  • Loading branch information
mmcloughlin committed Aug 21, 2021
1 parent c4b1a1a commit 908a496
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 88 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@37335c7bb261b353407cff977110895fa0b4f7d8 # v2.1.3
with:
go-version: 1.17.x
- name: Configure Go Environment
run: |
echo GOPATH=${{ runner.workspace }} >> $GITHUB_ENV
Expand Down
29 changes: 12 additions & 17 deletions script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -19,25 +19,20 @@ projectdir="${workdir}/godownloader"
git clone --depth 1 --branch v0.1.0 https://github.com/goreleaser/godownloader.git "${projectdir}"
(cd "${projectdir}" && go install .)

# Install tools.
tools=(
# gofumports for stricter formatting.
mvdan.cc/gofumpt/gofumports
# gofumports for stricter formatting.
go install mvdan.cc/gofumpt/gofumports@v0.0.0-20200412215918-a91da47f375c

# pigeon for PEG parser generation.
github.com/mna/pigeon
# pigeon for PEG parser generation.
go install github.com/mna/pigeon@v1.0.1-0.20200224192238-18953b277063

# mathfmt for unicode math formatting.
github.com/mmcloughlin/mathfmt
# mathfmt for unicode math formatting.
go install github.com/mmcloughlin/mathfmt@v0.0.0-20200207041814-4064651798f4

# bib for bibliography references.
github.com/mmcloughlin/bib
# bib for bibliography references.
go install github.com/mmcloughlin/bib@v0.4.0

# covertool for merging coverage reports
github.com/dlespiau/covertool
# covertool for merging coverage reports.
go install github.com/dlespiau/covertool@v0.0.0-20180314162135-b0c4c6d0583a

# assets embedding
modernc.org/assets
)

go install -modfile=script/tools.mod "${tools[@]}"
# assets embedding.
go install modernc.org/assets@v1.0.0
13 changes: 0 additions & 13 deletions script/tools.mod

This file was deleted.

58 changes: 0 additions & 58 deletions script/tools.sum

This file was deleted.

0 comments on commit 908a496

Please sign in to comment.