Skip to content

Commit

Permalink
Remove bundling of GoLangCI Lint as a dependency.
Browse files Browse the repository at this point in the history
  • Loading branch information
fergusstrange authored and AJ ONeal committed Oct 7, 2020
1 parent c7eae9d commit be59044
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 580 deletions.
11 changes: 7 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,13 @@ steps:
env
displayName: Print Go version and environment

- script: |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s v1.31.0
./bin/golangci-lint run -E gofmt -E goimports -E misspell ./...
workingDirectory: '$(modulePath)'
condition: eq( variables['Agent.OS'], 'Linux' )
displayName: Run Lint

- bash: |
go mod tidy
if [ ! -z "$(git status --porcelain go.mod)" ]; then
Expand All @@ -99,10 +106,6 @@ steps:
displayName: Ensure that module definition and checksums are correct

- script: |
go get -v -t d ./...
# ensure that the CORRECT golangci-list (as per go.mod) is run
go mod vendor
go run -mod=vendor github.com/golangci/golangci-lint/cmd/golangci-lint run -E gofmt -E goimports -E misspell
go test -race ./...
workingDirectory: '$(modulePath)'
displayName: Run tests
4 changes: 3 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,13 @@ require (
github.com/dsnet/compress v0.0.1
github.com/frankban/quicktest v1.10.0 // indirect
github.com/golang/snappy v0.0.1
github.com/golangci/golangci-lint v1.31.0
github.com/google/go-cmp v0.5.2 // indirect
github.com/klauspost/compress v1.10.10
github.com/klauspost/pgzip v1.2.4
github.com/kr/text v0.2.0 // indirect
github.com/nwaples/rardecode v1.1.0
github.com/pierrec/lz4/v3 v3.3.2
github.com/ulikunitz/xz v0.5.7
github.com/xi2/xz v0.0.0-20171230120015-48954b6210f8
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)
Loading

0 comments on commit be59044

Please sign in to comment.