Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[go] Update build instructions for golangci-lint
See #10825. Try to match more closely the build process followed upstream: - Force module build mode, which builds the latest stable release (not master), and takes care of module replacements. - Disable cgo. - The -trimpath argument to go get requires go >= 1.13, which is also needed because go <= 1.12 has a bug that causes problems with golangci-lint², as explained in the golangci-lint installation instructions². Note that the only thing that is missing to exactly match the upstream build process is the addition of some -X variables, which only affect the data reported by golangci-lint version. ¹: golang/go#29612 ²: https://github.com/golangci/golangci-lint#install Thanks to @dbriemann and @seriousben for reporting and clarifying this issue!
- Loading branch information