Skip to content

Commit bf8a9d9

Browse files
committed
Update minimum go version to 1.22
Go 1.22 introduces language simplications which can be leveraged and linters which can make use of it. Signed-off-by: Derek McGowan <derek@mcg.dev>
1 parent 4f0df13 commit bf8a9d9

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/containerd/plugin
22

3-
go 1.20
3+
go 1.22
44

55
require github.com/opencontainers/image-spec v1.1.0
66

plugin_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -520,15 +520,15 @@ func testPlugin(t Type, id string, i interface{}, err error) *Plugin {
520520
func BenchmarkGraph(b *testing.B) {
521521
register := testRegistry()
522522
b.ResetTimer()
523-
for i := 0; i < b.N; i++ {
523+
for range b.N {
524524
register.Graph(mockPluginFilter)
525525
}
526526
}
527527

528528
func BenchmarkUnique(b *testing.B) {
529529
register := testRegistry()
530530
b.ResetTimer()
531-
for i := 0; i < b.N; i++ {
531+
for range b.N {
532532
checkUnique(register, &Registration{
533533
Type: InternalPlugin,
534534
ID: "new",

0 commit comments

Comments
 (0)