Skip to content

Commit 9a47118

Browse files
committed
cli/command: add missing "go:build" comments
- commit e8dc2fc modernized loops to range over int, which requires go1.22 or later. - commit 85ebca5 modernized code to use stdlib min/max, which requires go1.21 or later. Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
1 parent e2f38c4 commit 9a47118

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

cli/command/container/opts.go

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

44
package container

cli/command/container/tty.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 container
25

36
import (

cli/command/service/progress/progress.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 progress
25

36
import (

0 commit comments

Comments
 (0)