Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Commit

Permalink
Fixed linting step (#368)
Browse files Browse the repository at this point in the history
  • Loading branch information
glooms committed Jul 22, 2019
1 parent 9b56634 commit 3b3501c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,13 @@ jobs:
name: Linting
command: |
go fmt ./...
git diff --exit-code
go get -u golang.org/x/lint/golint
golint -set_exit_status
# golint adds stuff to go.mod and go.sum that mess
# with git status --porcelain later
# go fmt and golint can alter go.mod and go.sum,
# this will cause the git diff to give false negative
# restore those files before proceeding
git checkout go.mod go.sum
git diff --exit-code
- run:
name: Test
command: go test -v -race ./...
Expand Down

0 comments on commit 3b3501c

Please sign in to comment.