Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[go] Update build instructions for golangci-lint #13121

Closed
wants to merge 1 commit into from
Closed

[go] Update build instructions for golangci-lint #13121

wants to merge 1 commit into from

Conversation

panchoh
Copy link
Contributor

@panchoh panchoh commented Dec 24, 2019

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!

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!
@duianto
Copy link
Collaborator

duianto commented Dec 28, 2019

Thank you for contributing to Spacemacs. It's safe to delete your branch.
The changes have been applied to the develop branch.
Commit(s): 1fa28b3

@duianto duianto closed this Dec 28, 2019
@panchoh panchoh deleted the update-golangci-lint-install-instructions branch December 28, 2019 20:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants