From 7c80e4f9380af134fb219fe5d23aa515ce72fb8f Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Tue, 12 Nov 2024 12:32:30 +0100 Subject: [PATCH] update go:build tags to use go1.22 commit 4a7b04d4127c6082a9e8de95cfce6f34744d8fc1 configured golangci-lint to use go1.23 semantics, which enabled the copyloopvar linter. go1.22 now creates a copy of variables when assigned in a loop; make sure we don't have files that may downgrade semantics to go1.21 in case that also means disabling that feature; https://go.dev/ref/spec#Go_1.22 Signed-off-by: Sebastiaan van Stijn --- cli-plugins/manager/error.go | 2 +- cli/command/cli.go | 2 +- cli/command/config/inspect.go | 2 +- cli/command/container/inspect.go | 2 +- cli/command/context.go | 2 +- cli/command/context/create.go | 2 +- cli/command/context/create_test.go | 2 +- cli/command/context/inspect.go | 2 +- cli/command/context/list.go | 2 +- cli/command/context_test.go | 2 +- cli/command/defaultcontextstore.go | 2 +- cli/command/defaultcontextstore_test.go | 2 +- cli/command/formatter/container.go | 2 +- cli/command/formatter/container_test.go | 2 +- cli/command/formatter/custom.go | 2 +- cli/command/formatter/formatter.go | 2 +- cli/command/formatter/formatter_test.go | 2 +- cli/command/formatter/reflect.go | 2 +- cli/command/formatter/reflect_test.go | 2 +- cli/command/formatter/volume_test.go | 2 +- cli/command/idresolver/idresolver.go | 2 +- cli/command/image/inspect.go | 2 +- cli/command/image/push.go | 2 +- cli/command/inspect/inspector.go | 2 +- cli/command/network/formatter_test.go | 2 +- cli/command/network/inspect.go | 2 +- cli/command/node/formatter_test.go | 2 +- cli/command/node/inspect.go | 2 +- cli/command/plugin/formatter_test.go | 2 +- cli/command/plugin/inspect.go | 2 +- cli/command/secret/inspect.go | 2 +- cli/command/service/formatter_test.go | 2 +- cli/command/service/inspect.go | 2 +- cli/command/service/inspect_test.go | 2 +- cli/command/service/opts.go | 2 +- cli/command/stack/loader/loader.go | 2 +- cli/command/system/info.go | 2 +- cli/command/system/inspect.go | 2 +- cli/command/telemetry_docker.go | 4 ++-- cli/command/trust/inspect.go | 2 +- cli/command/utils.go | 2 +- cli/command/volume/inspect.go | 2 +- cli/compose/interpolation/interpolation.go | 2 +- cli/compose/interpolation/interpolation_test.go | 2 +- cli/compose/loader/full-struct_test.go | 2 +- cli/compose/loader/interpolate.go | 2 +- cli/compose/loader/loader.go | 2 +- cli/compose/loader/loader_test.go | 2 +- cli/compose/loader/merge.go | 2 +- cli/compose/loader/merge_test.go | 2 +- cli/compose/schema/schema.go | 2 +- cli/compose/schema/schema_test.go | 2 +- cli/compose/template/template.go | 2 +- cli/compose/template/template_test.go | 2 +- cli/compose/types/types.go | 2 +- cli/context/store/metadata_test.go | 2 +- cli/context/store/metadatastore.go | 2 +- cli/context/store/store.go | 2 +- cli/context/store/store_test.go | 2 +- cli/context/store/storeconfig.go | 2 +- cli/context/store/storeconfig_test.go | 2 +- cli/internal/oauth/api/api.go | 2 +- cmd/docker/builder_test.go | 2 +- templates/templates.go | 2 +- 64 files changed, 65 insertions(+), 65 deletions(-) diff --git a/cli-plugins/manager/error.go b/cli-plugins/manager/error.go index f7dc6c7c5..cb0bbb5ab 100644 --- a/cli-plugins/manager/error.go +++ b/cli-plugins/manager/error.go @@ -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.21 +//go:build go1.22 package manager diff --git a/cli/command/cli.go b/cli/command/cli.go index dacd1a110..722901e06 100644 --- a/cli/command/cli.go +++ b/cli/command/cli.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/config/inspect.go b/cli/command/config/inspect.go index 2985823f1..7ae4a4c40 100644 --- a/cli/command/config/inspect.go +++ b/cli/command/config/inspect.go @@ -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.21 +//go:build go1.22 package config diff --git a/cli/command/container/inspect.go b/cli/command/container/inspect.go index 1f404ac7e..23b33b59f 100644 --- a/cli/command/container/inspect.go +++ b/cli/command/container/inspect.go @@ -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.21 +//go:build go1.22 package container diff --git a/cli/command/context.go b/cli/command/context.go index af2298bb5..404a6a13e 100644 --- a/cli/command/context.go +++ b/cli/command/context.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/context/create.go b/cli/command/context/create.go index 3f2cefeab..a77151c25 100644 --- a/cli/command/context/create.go +++ b/cli/command/context/create.go @@ -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.21 +//go:build go1.22 package context diff --git a/cli/command/context/create_test.go b/cli/command/context/create_test.go index 8f9a2bc8c..41e18f480 100644 --- a/cli/command/context/create_test.go +++ b/cli/command/context/create_test.go @@ -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.21 +//go:build go1.22 package context diff --git a/cli/command/context/inspect.go b/cli/command/context/inspect.go index 7302a6e33..3794b417c 100644 --- a/cli/command/context/inspect.go +++ b/cli/command/context/inspect.go @@ -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.21 +//go:build go1.22 package context diff --git a/cli/command/context/list.go b/cli/command/context/list.go index 83d48927a..23402e866 100644 --- a/cli/command/context/list.go +++ b/cli/command/context/list.go @@ -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.21 +//go:build go1.22 package context diff --git a/cli/command/context_test.go b/cli/command/context_test.go index bf5ecf7dd..8bfd89b56 100644 --- a/cli/command/context_test.go +++ b/cli/command/context_test.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/defaultcontextstore.go b/cli/command/defaultcontextstore.go index 258225768..c5b310e98 100644 --- a/cli/command/defaultcontextstore.go +++ b/cli/command/defaultcontextstore.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/defaultcontextstore_test.go b/cli/command/defaultcontextstore_test.go index 8f14f7e12..8fb8426e4 100644 --- a/cli/command/defaultcontextstore_test.go +++ b/cli/command/defaultcontextstore_test.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/formatter/container.go b/cli/command/formatter/container.go index 820e9ad12..ba62efb2f 100644 --- a/cli/command/formatter/container.go +++ b/cli/command/formatter/container.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/container_test.go b/cli/command/formatter/container_test.go index 65ff2eb11..df2639bf0 100644 --- a/cli/command/formatter/container_test.go +++ b/cli/command/formatter/container_test.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/custom.go b/cli/command/formatter/custom.go index ee7d14830..043e268db 100644 --- a/cli/command/formatter/custom.go +++ b/cli/command/formatter/custom.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/formatter.go b/cli/command/formatter/formatter.go index 4f1037725..5873cce8d 100644 --- a/cli/command/formatter/formatter.go +++ b/cli/command/formatter/formatter.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/formatter_test.go b/cli/command/formatter/formatter_test.go index c0af96d30..7a95f2112 100644 --- a/cli/command/formatter/formatter_test.go +++ b/cli/command/formatter/formatter_test.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/reflect.go b/cli/command/formatter/reflect.go index e2c0b28f5..fe8def610 100644 --- a/cli/command/formatter/reflect.go +++ b/cli/command/formatter/reflect.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/reflect_test.go b/cli/command/formatter/reflect_test.go index b68bad94a..79737ec5f 100644 --- a/cli/command/formatter/reflect_test.go +++ b/cli/command/formatter/reflect_test.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/formatter/volume_test.go b/cli/command/formatter/volume_test.go index f27ad1743..a0ab5134c 100644 --- a/cli/command/formatter/volume_test.go +++ b/cli/command/formatter/volume_test.go @@ -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.21 +//go:build go1.22 package formatter diff --git a/cli/command/idresolver/idresolver.go b/cli/command/idresolver/idresolver.go index 802ff46fe..f73eb16e2 100644 --- a/cli/command/idresolver/idresolver.go +++ b/cli/command/idresolver/idresolver.go @@ -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.21 +//go:build go1.22 package idresolver diff --git a/cli/command/image/inspect.go b/cli/command/image/inspect.go index 90fc67040..b0e4fba52 100644 --- a/cli/command/image/inspect.go +++ b/cli/command/image/inspect.go @@ -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.21 +//go:build go1.22 package image diff --git a/cli/command/image/push.go b/cli/command/image/push.go index 92ef1a159..9ad2abd1f 100644 --- a/cli/command/image/push.go +++ b/cli/command/image/push.go @@ -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.21 +//go:build go1.22 package image diff --git a/cli/command/inspect/inspector.go b/cli/command/inspect/inspector.go index d618e9214..46ba8750d 100644 --- a/cli/command/inspect/inspector.go +++ b/cli/command/inspect/inspector.go @@ -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.21 +//go:build go1.22 package inspect diff --git a/cli/command/network/formatter_test.go b/cli/command/network/formatter_test.go index 018f789b1..8c61bffb9 100644 --- a/cli/command/network/formatter_test.go +++ b/cli/command/network/formatter_test.go @@ -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.21 +//go:build go1.22 package network diff --git a/cli/command/network/inspect.go b/cli/command/network/inspect.go index 72f66382f..73b7a79e2 100644 --- a/cli/command/network/inspect.go +++ b/cli/command/network/inspect.go @@ -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.21 +//go:build go1.22 package network diff --git a/cli/command/node/formatter_test.go b/cli/command/node/formatter_test.go index 4eb172a93..861244569 100644 --- a/cli/command/node/formatter_test.go +++ b/cli/command/node/formatter_test.go @@ -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.21 +//go:build go1.22 package node diff --git a/cli/command/node/inspect.go b/cli/command/node/inspect.go index 3ad98ef8b..270a14bd2 100644 --- a/cli/command/node/inspect.go +++ b/cli/command/node/inspect.go @@ -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.21 +//go:build go1.22 package node diff --git a/cli/command/plugin/formatter_test.go b/cli/command/plugin/formatter_test.go index 642ee2afc..438d53b02 100644 --- a/cli/command/plugin/formatter_test.go +++ b/cli/command/plugin/formatter_test.go @@ -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.21 +//go:build go1.22 package plugin diff --git a/cli/command/plugin/inspect.go b/cli/command/plugin/inspect.go index d910dc6e8..21ff99d9c 100644 --- a/cli/command/plugin/inspect.go +++ b/cli/command/plugin/inspect.go @@ -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.21 +//go:build go1.22 package plugin diff --git a/cli/command/secret/inspect.go b/cli/command/secret/inspect.go index df448155e..5559d43d3 100644 --- a/cli/command/secret/inspect.go +++ b/cli/command/secret/inspect.go @@ -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.21 +//go:build go1.22 package secret diff --git a/cli/command/service/formatter_test.go b/cli/command/service/formatter_test.go index cc74bfe6f..a07ed4c6d 100644 --- a/cli/command/service/formatter_test.go +++ b/cli/command/service/formatter_test.go @@ -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.21 +//go:build go1.22 package service diff --git a/cli/command/service/inspect.go b/cli/command/service/inspect.go index fcd85c120..28b957f77 100644 --- a/cli/command/service/inspect.go +++ b/cli/command/service/inspect.go @@ -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.21 +//go:build go1.22 package service diff --git a/cli/command/service/inspect_test.go b/cli/command/service/inspect_test.go index cd088c77a..b1da0dafa 100644 --- a/cli/command/service/inspect_test.go +++ b/cli/command/service/inspect_test.go @@ -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.21 +//go:build go1.22 package service diff --git a/cli/command/service/opts.go b/cli/command/service/opts.go index 79f545445..9298cfb13 100644 --- a/cli/command/service/opts.go +++ b/cli/command/service/opts.go @@ -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.21 +//go:build go1.22 package service diff --git a/cli/command/stack/loader/loader.go b/cli/command/stack/loader/loader.go index 7521d0471..5608a81c8 100644 --- a/cli/command/stack/loader/loader.go +++ b/cli/command/stack/loader/loader.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/command/system/info.go b/cli/command/system/info.go index 8ec19521d..108a65a5f 100644 --- a/cli/command/system/info.go +++ b/cli/command/system/info.go @@ -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.21 +//go:build go1.22 package system diff --git a/cli/command/system/inspect.go b/cli/command/system/inspect.go index e0133ba7a..0af387946 100644 --- a/cli/command/system/inspect.go +++ b/cli/command/system/inspect.go @@ -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.21 +//go:build go1.22 package system diff --git a/cli/command/telemetry_docker.go b/cli/command/telemetry_docker.go index c3612a7e0..298209e2b 100644 --- a/cli/command/telemetry_docker.go +++ b/cli/command/telemetry_docker.go @@ -1,5 +1,5 @@ -// FIXME(jsternberg): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16: -//go:build go1.21 +// 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 package command diff --git a/cli/command/trust/inspect.go b/cli/command/trust/inspect.go index 3de90b4e6..6de786623 100644 --- a/cli/command/trust/inspect.go +++ b/cli/command/trust/inspect.go @@ -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.21 +//go:build go1.22 package trust diff --git a/cli/command/utils.go b/cli/command/utils.go index 73b61b346..8a8368fba 100644 --- a/cli/command/utils.go +++ b/cli/command/utils.go @@ -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.21 +//go:build go1.22 package command diff --git a/cli/command/volume/inspect.go b/cli/command/volume/inspect.go index bebc24213..015a8040d 100644 --- a/cli/command/volume/inspect.go +++ b/cli/command/volume/inspect.go @@ -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.21 +//go:build go1.22 package volume diff --git a/cli/compose/interpolation/interpolation.go b/cli/compose/interpolation/interpolation.go index 42aefc662..ee11656f6 100644 --- a/cli/compose/interpolation/interpolation.go +++ b/cli/compose/interpolation/interpolation.go @@ -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.21 +//go:build go1.22 package interpolation diff --git a/cli/compose/interpolation/interpolation_test.go b/cli/compose/interpolation/interpolation_test.go index 21fd359c4..cc7ffacab 100644 --- a/cli/compose/interpolation/interpolation_test.go +++ b/cli/compose/interpolation/interpolation_test.go @@ -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.21 +//go:build go1.22 package interpolation diff --git a/cli/compose/loader/full-struct_test.go b/cli/compose/loader/full-struct_test.go index e36204154..2aa512d09 100644 --- a/cli/compose/loader/full-struct_test.go +++ b/cli/compose/loader/full-struct_test.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/loader/interpolate.go b/cli/compose/loader/interpolate.go index 68d3b8c32..82c36d7dc 100644 --- a/cli/compose/loader/interpolate.go +++ b/cli/compose/loader/interpolate.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/loader/loader.go b/cli/compose/loader/loader.go index ecf86af9b..7bc420b2b 100644 --- a/cli/compose/loader/loader.go +++ b/cli/compose/loader/loader.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/loader/loader_test.go b/cli/compose/loader/loader_test.go index c1d7af364..b173e6181 100644 --- a/cli/compose/loader/loader_test.go +++ b/cli/compose/loader/loader_test.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/loader/merge.go b/cli/compose/loader/merge.go index 15fc69b85..ee0a39f91 100644 --- a/cli/compose/loader/merge.go +++ b/cli/compose/loader/merge.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/loader/merge_test.go b/cli/compose/loader/merge_test.go index 4d145cc7d..9d5a1dd6c 100644 --- a/cli/compose/loader/merge_test.go +++ b/cli/compose/loader/merge_test.go @@ -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.21 +//go:build go1.22 package loader diff --git a/cli/compose/schema/schema.go b/cli/compose/schema/schema.go index 129e116d1..9c68166e3 100644 --- a/cli/compose/schema/schema.go +++ b/cli/compose/schema/schema.go @@ -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.21 +//go:build go1.22 package schema diff --git a/cli/compose/schema/schema_test.go b/cli/compose/schema/schema_test.go index 973849415..8993443d9 100644 --- a/cli/compose/schema/schema_test.go +++ b/cli/compose/schema/schema_test.go @@ -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.21 +//go:build go1.22 package schema diff --git a/cli/compose/template/template.go b/cli/compose/template/template.go index d97e162b0..1507c0ee6 100644 --- a/cli/compose/template/template.go +++ b/cli/compose/template/template.go @@ -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.21 +//go:build go1.22 package template diff --git a/cli/compose/template/template_test.go b/cli/compose/template/template_test.go index 5482342f8..92b95460e 100644 --- a/cli/compose/template/template_test.go +++ b/cli/compose/template/template_test.go @@ -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.21 +//go:build go1.22 package template diff --git a/cli/compose/types/types.go b/cli/compose/types/types.go index 2b929f4d7..55b80365f 100644 --- a/cli/compose/types/types.go +++ b/cli/compose/types/types.go @@ -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.21 +//go:build go1.22 package types diff --git a/cli/context/store/metadata_test.go b/cli/context/store/metadata_test.go index b37ced034..3d3a6606a 100644 --- a/cli/context/store/metadata_test.go +++ b/cli/context/store/metadata_test.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/context/store/metadatastore.go b/cli/context/store/metadatastore.go index 0c6986fa7..6b8975a4a 100644 --- a/cli/context/store/metadatastore.go +++ b/cli/context/store/metadatastore.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/context/store/store.go b/cli/context/store/store.go index 066b5769d..3643e5765 100644 --- a/cli/context/store/store.go +++ b/cli/context/store/store.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/context/store/store_test.go b/cli/context/store/store_test.go index c785b2e01..0f00f4a94 100644 --- a/cli/context/store/store_test.go +++ b/cli/context/store/store_test.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/context/store/storeconfig.go b/cli/context/store/storeconfig.go index aa516a191..bfd5e6fcd 100644 --- a/cli/context/store/storeconfig.go +++ b/cli/context/store/storeconfig.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/context/store/storeconfig_test.go b/cli/context/store/storeconfig_test.go index 22d40e852..da3d7e9e7 100644 --- a/cli/context/store/storeconfig_test.go +++ b/cli/context/store/storeconfig_test.go @@ -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.21 +//go:build go1.22 package store diff --git a/cli/internal/oauth/api/api.go b/cli/internal/oauth/api/api.go index cf6c1be96..98c981f02 100644 --- a/cli/internal/oauth/api/api.go +++ b/cli/internal/oauth/api/api.go @@ -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.21 +//go:build go1.22 package api diff --git a/cmd/docker/builder_test.go b/cmd/docker/builder_test.go index 72b1ffab3..5f7875ff8 100644 --- a/cmd/docker/builder_test.go +++ b/cmd/docker/builder_test.go @@ -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.21 +//go:build go1.22 package main diff --git a/templates/templates.go b/templates/templates.go index 572ece8be..da2354cab 100644 --- a/templates/templates.go +++ b/templates/templates.go @@ -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.21 +//go:build go1.22 package templates