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 a5703fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Expand Up @@ -21,7 +21,7 @@ jobs:
go-version: 1.18

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

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

- name: Set up Revive (linter)
run: go get -u github.com/boyter/scc github.com/mgechev/revive
run: go install -u 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 -u github.com/boyter/scc github.com/mgechev/revive

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

0 comments on commit a5703fd

Please sign in to comment.