-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
fix linter in tpg #9243
fix linter in tpg #9243
Conversation
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.
I still get the following errors locally that aren't in CI:
google/resource_container_cluster_test.go:2366:6: func `testAccContainerCluster_updateVersion` is unused (unused)
google/resource_container_node_pool_test.go:1284:6: func `testAccContainerNodePool_version` is unused (unused)
google/resource_container_node_pool_test.go:1308:6: func `testAccContainerNodePool_updateVersion` is unused (unused)
google/resource_container_cluster_test.go:2644:6: func `testAccContainerCluster_withNodePoolLowerVersion` is unused (unused)
google/resource_container_cluster_test.go:2351:6: func `testAccContainerCluster_withLowerVersion` is unused (unused)
google/resource_container_cluster_test.go:2665:6: func `testAccContainerCluster_withNodePoolUpdateVersion` is unused (unused)
Yeah this is due to a newer version of the linter. This error is legitimate. The tests that use these functions use a t.skip which is considered an early return. We will need to fix those tests to be conditional skips |
@ScottSuarez why do those errors not show up in CI? Is it on an old version of the linter? |
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.
LGTM - definitely an improvement over the current state. I think it doesn't quite close the ticket as-is, though, since there are still errors that are showing up locally but not in CI.
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.
LGTM - definitely an improvement over the current state. I think it doesn't quite close the ticket as-is, though, since there are still errors that are showing up locally but not in CI.
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Helps with #9145
ref:
golangci/golangci-lint#2017