mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
upgrade golangci-lint to v1.62 (#2174)
Signed-off-by: ollevche <ollevche@gmail.com>
This commit is contained in:
parent
821e67feed
commit
52cc91c87a
2
.github/workflows/checks.yml
vendored
2
.github/workflows/checks.yml
vendored
@ -212,7 +212,7 @@ jobs:
|
|||||||
- name: "Code linting"
|
- name: "Code linting"
|
||||||
uses: golangci/golangci-lint-action@v6
|
uses: golangci/golangci-lint-action@v6
|
||||||
with:
|
with:
|
||||||
version: v1.58
|
version: v1.62
|
||||||
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
# Only compare with changes from when we introduced linting. Eventually we can get rid of this and lint the whole project
|
||||||
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8
|
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8
|
||||||
|
|
||||||
|
@ -137,7 +137,7 @@ func (e *targetBuilder) setupKeyProvider(cfg config.KeyProviderConfig, stack []c
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
// This will always be a TraverseRoot, panic is OK if that's not the case
|
//nolint:errcheck // This will always be a TraverseRoot, panic is OK if that's not the case
|
||||||
depRoot := (dep[0].(hcl.TraverseRoot)).Name
|
depRoot := (dep[0].(hcl.TraverseRoot)).Name
|
||||||
if depRoot != "key_provider" {
|
if depRoot != "key_provider" {
|
||||||
nonKeyProviderDeps = append(nonKeyProviderDeps, dep)
|
nonKeyProviderDeps = append(nonKeyProviderDeps, dep)
|
||||||
|
@ -201,7 +201,7 @@ func (m resourceForTestByType) getOverrideValues(typeName string) map[string]cty
|
|||||||
}
|
}
|
||||||
|
|
||||||
func newMockValueComposer(typeName string) hcl2shim.MockValueComposer {
|
func newMockValueComposer(typeName string) hcl2shim.MockValueComposer {
|
||||||
hash := fnv.New64()
|
hash := fnv.New32()
|
||||||
hash.Write([]byte(typeName))
|
hash.Write([]byte(typeName))
|
||||||
return hcl2shim.NewMockValueComposer(int64(hash.Sum64()))
|
return hcl2shim.NewMockValueComposer(int64(hash.Sum32()))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user