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

Bump golangci-lint and work around the corrupting bug #666

Merged
merged 2 commits into from
Apr 27, 2020

Conversation

krnowak
Copy link
Member

@krnowak krnowak commented Apr 27, 2020

The "unused" linter corrupts the file when run with --fix mode, so disable it for this run. It will still report stuff on the second run, without the --fix mode.

Closes #665.

This linter seems to provide bogus fix-up information to
golangci-lint, which results in file corruption instead of fixing the
issue. Since we are going to run the linter again anyway, but without
the --fix mode, skip the "unused" linter explicitly for the first run
- it will still have a chance to report errors on the second run.
@jmacd jmacd merged commit e21dfa2 into open-telemetry:master Apr 27, 2020
@krnowak krnowak deleted the golint-bump branch April 28, 2020 13:47
@pellared pellared added this to the untracked milestone Nov 8, 2024
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.

Golang Lint tool corrupts files in --fix mode on unused types
4 participants