-
Notifications
You must be signed in to change notification settings - Fork 70
Conversation
seperate 'lint' and 'test' CI steps 'go test' and 'go build' should use files from the 'vendor' folder pact tests should use go modules use vendor in 'go vet' run golangci-lint on each subdir in pkg individually in ci skip running golangci-lint on integration tests go-bindata and go-modules do not get along
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 43337 lines exceeds the maximum allowed for the inline comments feature.
|
||
} | ||
} | ||
// func (d *V1Routes) requireKustomize() gin.HandlerFunc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it if not used?
|
||
} | ||
} | ||
// func (d *V1Routes) requireUnfork() gin.HandlerFunc { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it if not used?
hack/get_build_deps.sh
Outdated
go get github.com/golang/mock/gomock | ||
go install github.com/golang/mock/mockgen | ||
go get github.com/elazarl/go-bindata-assetfs/go-bindata-assetfs | ||
go get -u github.com/jteeuwen/go-bindata/go-bindata | ||
go get -u github.com/gordonklaus/ineffassign | ||
GO111MODULE=auto go get -u github.com/jteeuwen/go-bindata/go-bindata |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
auto
is kind of mysterious. can this be either off or on? i think off
is what you want here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably a better idea, yeah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just some comments
use 'GO111MODULE=off' not 'auto' to disable remove commented out unused functions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 43290 lines exceeds the maximum allowed for the inline comments feature.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR diff size of 43284 lines exceeds the maximum allowed for the inline comments feature.
What I Did
Added golangci to our CI testing. Fixed the errors it identified. Fixes #1056.
How I Did it
Lots of code fixes.
How to verify it
the
lint
job runs successfullyDescription for the Changelog
Picture of a Ship (not required but encouraged)