Skip to content

Commit

Permalink
fix(build,ci): use go install
Browse files Browse the repository at this point in the history
Use `go install` instead of `go get` now that the behavior of the latter
has changed.

See: cheat#651
  • Loading branch information
chrisallenlane committed Jul 5, 2022
1 parent d8f405c commit 6786d3b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Expand Up @@ -21,11 +21,10 @@ jobs:
go-version: 1.18

- name: Set up Revive (linter)
run: go get -u github.com/boyter/scc github.com/mgechev/revive
run: GO111MODULE=off go install github.com/boyter/scc github.com/mgechev/revive
env:
GO111MODULE: off


- name: Build
run: make build

Expand All @@ -44,7 +43,7 @@ jobs:
go-version: 1.18

- name: Set up Revive (linter)
run: go get -u github.com/boyter/scc github.com/mgechev/revive
run: GO111MODULE=off go install github.com/boyter/scc github.com/mgechev/revive
env:
GO111MODULE: off

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -115,7 +115,7 @@ distclean:
## setup: install revive (linter) and scc (sloc tool)
.PHONY: setup
setup:
GO111MODULE=off $(GO) get -u github.com/boyter/scc github.com/mgechev/revive
GO111MODULE=off $(GO) install github.com/boyter/scc github.com/mgechev/revive

## sloc: count "semantic lines of code"
.PHONY: sloc
Expand Down

0 comments on commit 6786d3b

Please sign in to comment.