mirror of
https://github.com/containers/podman.git
synced 2025-10-09 23:15:39 +08:00
bump go to 1.22
Many dependencies started using go 1.22 which means we have to follow in order to update. Disable the now depracted exportloopref linter as it was replaced by copyloopvar as go fixed the loop copy problem in 1.22[1] Another new chnage in go 1.22 is the for loop syntax over ints, the intrange linter chacks for this but there a lot of loops that have to be converted so I didn't do it here and disable th elinter for now, th eold syntax is still fine. [1] https://go.dev/blog/loopvar-preview Signed-off-by: Paul Holzinger <pholzing@redhat.com>
This commit is contained in:
@ -8,6 +8,7 @@ linters:
|
||||
disable:
|
||||
# too many reports but requires attention
|
||||
- depguard
|
||||
- intrange # should be turned on but we have to convert each place manually as there is no auto fix function
|
||||
- tagalign
|
||||
- perfsprint
|
||||
- typecheck
|
||||
@ -62,6 +63,7 @@ linters:
|
||||
- exhaustruct
|
||||
# deprecated linters
|
||||
- execinquery
|
||||
- exportloopref
|
||||
linters-settings:
|
||||
errcheck:
|
||||
check-blank: false
|
||||
|
Reference in New Issue
Block a user