upgrade golangci-lint to v1.62 (#2174)

Signed-off-by: ollevche <ollevche@gmail.com>
This commit is contained in:
Oleksandr Levchenkov 2024-11-18 19:56:29 +02:00 committed by GitHub
parent 821e67feed
commit 52cc91c87a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -212,7 +212,7 @@ jobs:
- name: "Code linting"
uses: golangci/golangci-lint-action@v6
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
args: --new-from-rev dd5f9afe8948186c76fe6b8b1193d7a8f46919d8

View File

@ -137,7 +137,7 @@ func (e *targetBuilder) setupKeyProvider(cfg config.KeyProviderConfig, stack []c
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
if depRoot != "key_provider" {
nonKeyProviderDeps = append(nonKeyProviderDeps, dep)

View File

@ -201,7 +201,7 @@ func (m resourceForTestByType) getOverrideValues(typeName string) map[string]cty
}
func newMockValueComposer(typeName string) hcl2shim.MockValueComposer {
hash := fnv.New64()
hash := fnv.New32()
hash.Write([]byte(typeName))
return hcl2shim.NewMockValueComposer(int64(hash.Sum64()))
return hcl2shim.NewMockValueComposer(int64(hash.Sum32()))
}