Skip to content

Commit

Permalink
make: Install golangci-lint to $CWD/bin
Browse files Browse the repository at this point in the history
This way we start a pattern of installing them locally. Not a big deal
for golangci-lint but will be useful later in this PR.
  • Loading branch information
mmlb committed May 10, 2024
1 parent 82baee9 commit a4de88d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
### Go template
/bin/

# Test binary, build with `go test -c`
*.test
Expand Down
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
.DEFAULT_GOAL := help

export GOBIN=$(CURDIR)/bin
export PATH:=$(PATH):$(GOBIN)

## Run all linters
lint: golangci-lint

## Run golangci-lint
golangci-lint:
go run github.com/golangci/golangci-lint/cmd/[email protected] run --config .golangci.yml
go install github.com/golangci/golangci-lint/cmd/[email protected]
golangci-lint run --config .golangci.yml

## Run go test
go-test:
Expand Down

0 comments on commit a4de88d

Please sign in to comment.