Browse Source

Merge pull request #47213 from thaJeztah/more_gocompat

add more //go:build directives to prevent downgrading to go1.16 language
Sebastiaan van Stijn 1 năm trước cách đây
mục cha
commit
c7b3cb101b

+ 3 - 0
daemon/container_operations.go

@@ -1,3 +1,6 @@
+// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
+//go:build go1.19
+
 package daemon // import "github.com/docker/docker/daemon"
 
 import (

+ 3 - 0
daemon/inspect.go

@@ -1,3 +1,6 @@
+// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
+//go:build go1.19
+
 package daemon // import "github.com/docker/docker/daemon"
 
 import (

+ 3 - 0
internal/sliceutil/sliceutil.go

@@ -1,3 +1,6 @@
+// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
+//go:build go1.19
+
 package sliceutil
 
 func Dedup[T comparable](slice []T) []T {

+ 3 - 0
libnetwork/endpoint.go

@@ -1,3 +1,6 @@
+// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
+//go:build go1.19
+
 package libnetwork
 
 import (