Skip to content

Commit 1eb2927

Browse files
committed
chore: upgrade to golangci-lint v2
- Upgrades to golangci-lint configuration to support v2. - Updates workflow to v7 that supports v2. Signed-off-by: Ryan Johnson <[email protected]>
1 parent 441231c commit 1eb2927

File tree

3 files changed

+16
-4
lines changed

3 files changed

+16
-4
lines changed

Diff for: .golangci.yml

+14-1
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,25 @@ linters:
3232
- legacy
3333
- std-error-handling
3434
rules:
35+
# TODO: Setting temporary exclusions.
3536
- linters:
3637
- errcheck
3738
text: Error return value of `d.Set` is not checked
3839
- linters:
3940
- revive
40-
text: 'redefines-builtin-id: redefinition of the built-in'
41+
text: redefines-builtin-id
42+
- linters:
43+
- revive
44+
text: unused-parameter
45+
- linters:
46+
- revive
47+
text: indent-error-flow
48+
- linters:
49+
- gosec
50+
text: G402
51+
- linters:
52+
- goimports
53+
text: formatted
4154
paths:
4255
- third_party$
4356
- builtin$

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ Learn more:
2626

2727
For general information about Terraform, visit [HashiCorp Developer][terraform-install] and [the project][terraform-github] on GitHub.
2828

29-
* [Go 1.22.7][golang-install]
29+
* [Go 1.23.8][golang-install]
3030

3131
Required, if [building][provider-build] the provider.
3232

Diff for: go.mod

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
module github.com/vmware/terraform-provider-hcx
22

3-
go 1.22.7
4-
toolchain go1.24.1
3+
go 1.23.8
54

65
require (
76
github.com/hashicorp/go-cty v1.5.0

0 commit comments

Comments
 (0)