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

build: Use Go 1.17 for golangci linting and update golangci/golangci-lint-action #364

Merged
merged 8 commits into from Sep 6, 2022

Conversation

ethan-lowman-dd
Copy link
Contributor

@ethan-lowman-dd ethan-lowman-dd commented Aug 24, 2022

Fixes #362
Release Notes:

  • Use Go 1.17 for golangci linting until generics are supported.
  • Update golangci/golangci-lint-action and run checks using the correct version of Go for the Go version matrix.

Types of changes:

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Description of the changes being introduced by the pull request:
Go 1.18 is not supported by golangci-lint yet since generics are not supported. To fix, we have to lint using Go 1.17. Note that gofmt checks still appear to target the latest Go version.

Please verify and check that the pull request fulfills the following requirements:

  • Tests have been added for the bug fix or new feature
  • Docs have been added for the bug fix or new feature

Copy link
Contributor

@asraa asraa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm minus some format checks that'd be nice to clean up here!

@ethan-lowman-dd ethan-lowman-dd force-pushed the ethan.lowman/fix-linters-go-1.18 branch 2 times, most recently from a11e9a0 to ca0eb4e Compare August 24, 2022 19:13
client/client.go Outdated Show resolved Hide resolved
client/client.go Show resolved Hide resolved
verify/db_test.go Show resolved Hide resolved
client/client.go Outdated Show resolved Hide resolved
asraa
asraa previously approved these changes Aug 24, 2022
asraa
asraa previously approved these changes Aug 29, 2022
@trishankatdatadog
Copy link
Member

@ethan-lowman-dd would you mind resolving the conflicts?

…tion

Go 1.18 is not supported by golangci-lint yet since generics are not
supported.

Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
Signed-off-by: Ethan Lowman <ethan.lowman@datadoghq.com>
@ethan-lowman-dd
Copy link
Contributor Author

Rebased the branch to fix merge conflicts.

@trishankatdatadog trishankatdatadog merged commit 06ed599 into master Sep 6, 2022
@trishankatdatadog trishankatdatadog deleted the ethan.lowman/fix-linters-go-1.18 branch September 6, 2022 15:18
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.

Linters are not running for Go 1.18
3 participants