Skip to content

Commit a0e303a

Browse files
committed
opts/swarmopts: add missing build-tag
This was introduced in 9c10a9c, which added use of the network.ParsePortRange.All method, which uses an iterator and requires go1.23; opts/swarmopts/port.go:172:18: cannot range over pr.All() (value of func type iter.Seq[network.Port]): requires go1.23 or later (-lang was set to go1.16; check go.mod) Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 0e38eec commit a0e303a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

opts/swarmopts/port.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.24
3+
14
package swarmopts
25

36
import (

0 commit comments

Comments
 (0)