Skip to content

Commit

Permalink
build: speed up linting by 1.5x (hashicorp#12908)
Browse files Browse the repository at this point in the history
  • Loading branch information
rboyer authored May 5, 2022
1 parent 7eda81d commit d4eef44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ jobs:
default: ""
docker:
- image: *GOLANG_IMAGE
resource_class: large
resource_class: xlarge
environment:
GOTAGS: "" # No tags for OSS but there are for enterprise
GOARCH: "<<parameters.go-arch>>"
Expand All @@ -191,7 +191,7 @@ jobs:
- run:
name: lint
command: &lintcmd |
golangci-lint run --build-tags="$GOTAGS" -v --concurrency 2
golangci-lint run --build-tags="$GOTAGS" -v
- run:
name: lint api
working_directory: api
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ linters-settings:

run:
timeout: 10m
concurrency: 4

0 comments on commit d4eef44

Please sign in to comment.