Skip to content

Commit 5403e3f

Browse files
committed
libnetwork/networkdb: add //go:build directives to prevent downgrading to go1.16
commit 2847c4b switched networkdb to use go-immutable-radix v2, which uses generics, but failed to add the go:build directives. # github.com/docker/docker/libnetwork/networkdb ../../libnetwork/networkdb/networkdb.go:47:19: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) ../../libnetwork/networkdb/networkdb.go:259:33: type instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) ../../libnetwork/networkdb/networkdb.go:269:25: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) ../../libnetwork/networkdb/networkdb.go:270:27: function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 96898c8 commit 5403e3f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

libnetwork/networkdb/networkdb.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// 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
3+
14
package networkdb
25

36
//go:generate protoc -I=. -I=../../vendor/ --gogofaster_out=import_path=github.com/docker/docker/libnetwork/networkdb:. networkdb.proto

0 commit comments

Comments
 (0)