Skip to content

Commit

Permalink
update minimum go version to go1.23
Browse files Browse the repository at this point in the history
Go maintainers started to unconditionally update the minimum go version
for golang.org/x/ dependencies to go1.23, which means that we'll no longer
be able to support any version below that when updating those dependencies;

> all: upgrade go directive to at least 1.23.0 [generated]
>
> By now Go 1.24.0 has been released, and Go 1.22 is no longer supported
> per the Go Release Policy (https://go.dev/doc/devel/release#policy).
>
> For golang/go#69095.

This updates our minimum version to go1.23, as we won't be able to maintain
compatibility with older versions because of the above.

Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Feb 25, 2025
1 parent 41277f5 commit c915382
Show file tree
Hide file tree
Showing 74 changed files with 75 additions and 75 deletions.
2 changes: 1 addition & 1 deletion cli-plugins/manager/error.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package manager

Expand Down
2 changes: 1 addition & 1 deletion cli/command/cli.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/config/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package config

Expand Down
4 changes: 2 additions & 2 deletions cli/command/container/completion.go
Original file line number Diff line number Diff line change
@@ -1,6 +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.22
// +build go1.22
//go:build go1.23
// +build go1.23

package container

Expand Down
2 changes: 1 addition & 1 deletion cli/command/container/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package container

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context/create.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package context

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context/create_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package context

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package context

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context/list.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package context

Expand Down
2 changes: 1 addition & 1 deletion cli/command/context_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/defaultcontextstore.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/defaultcontextstore_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/container.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/container_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/custom.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/formatter.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/reflect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/reflect_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/formatter/volume_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package formatter

Expand Down
2 changes: 1 addition & 1 deletion cli/command/idresolver/idresolver.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package idresolver

Expand Down
2 changes: 1 addition & 1 deletion cli/command/image/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package image

Expand Down
2 changes: 1 addition & 1 deletion cli/command/image/push.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package image

Expand Down
2 changes: 1 addition & 1 deletion cli/command/inspect/inspector.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package inspect

Expand Down
2 changes: 1 addition & 1 deletion cli/command/network/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package network

Expand Down
2 changes: 1 addition & 1 deletion cli/command/network/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package network

Expand Down
2 changes: 1 addition & 1 deletion cli/command/node/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package node

Expand Down
2 changes: 1 addition & 1 deletion cli/command/node/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package node

Expand Down
2 changes: 1 addition & 1 deletion cli/command/plugin/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package plugin

Expand Down
2 changes: 1 addition & 1 deletion cli/command/plugin/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package plugin

Expand Down
2 changes: 1 addition & 1 deletion cli/command/secret/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package secret

Expand Down
2 changes: 1 addition & 1 deletion cli/command/service/formatter_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package service

Expand Down
2 changes: 1 addition & 1 deletion cli/command/service/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package service

Expand Down
2 changes: 1 addition & 1 deletion cli/command/service/inspect_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package service

Expand Down
2 changes: 1 addition & 1 deletion cli/command/service/opts.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package service

Expand Down
2 changes: 1 addition & 1 deletion cli/command/stack/loader/loader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/command/system/info.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package system

Expand Down
2 changes: 1 addition & 1 deletion cli/command/system/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package system

Expand Down
2 changes: 1 addition & 1 deletion cli/command/telemetry_docker.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/trust/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package trust

Expand Down
2 changes: 1 addition & 1 deletion cli/command/utils.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package command

Expand Down
2 changes: 1 addition & 1 deletion cli/command/volume/inspect.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package volume

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/interpolation/interpolation.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package interpolation

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/interpolation/interpolation_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package interpolation

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/full-struct_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/interpolate.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/loader.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/loader_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/merge.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/loader/merge_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package loader

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/schema/schema.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package schema

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/schema/schema_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package schema

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/template/template.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package template

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/template/template_test.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package template

Expand Down
2 changes: 1 addition & 1 deletion cli/compose/types/types.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// FIXME(thaJeztah): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16:
//go:build go1.22
//go:build go1.23

package types

Expand Down
Loading

0 comments on commit c915382

Please sign in to comment.