mirror of
https://github.com/containers/podman.git
synced 2025-05-17 23:26:08 +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:
@ -43,7 +43,6 @@ func TestCause(t *testing.T) {
|
||||
expectedErr: fmt.Errorf("0: %w", errors.New("error")),
|
||||
},
|
||||
} {
|
||||
tc := tc
|
||||
t.Run(tc.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
err := Cause(tc.err())
|
||||
|
Reference in New Issue
Block a user