Skip to content

Commit b453aa6

Browse files
committed
update go:build tags to use go1.22
commit a0807e7 configured golangci-lint to use go1.23 semantics, which alowed linters like `copyloopvar` to lint using thee correct semantics. go1.22 now creates a copy of variables when assigned in a loop; make sure we don't have files that may downgrade semantics to go1.21 in case that also means disabling that feature; https://go.dev/ref/spec#Go_1.22 Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 615d72a commit b453aa6

27 files changed

Lines changed: 27 additions & 27 deletions

File tree

api/server/router/grpc/grpc.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package grpc // import "github.com/docker/docker/api/server/router/grpc"
55

api/server/router/system/system.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package system // import "github.com/docker/docker/api/server/router/system"
55

builder/builder-next/adapters/containerimage/pull.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package containerimage
55

container/view.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package container // import "github.com/docker/docker/container"
55

daemon/container_operations.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package daemon // import "github.com/docker/docker/daemon"
55

daemon/containerd/image_push_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package containerd
55

daemon/daemon.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
// Package daemon exposes the functions that occur on the host server
55
// that the Docker daemon is running.

daemon/info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package daemon // import "github.com/docker/docker/daemon"
55

daemon/inspect.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package daemon // import "github.com/docker/docker/daemon"
55

daemon/logger/loggerutils/logfile.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
2-
//go:build go1.21
2+
//go:build go1.22
33

44
package loggerutils // import "github.com/docker/docker/daemon/logger/loggerutils"
55

0 commit comments

Comments
 (0)