From cfe6090d5d0e33df06b3a97dc1e92e4d33e54cbb Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 15 Nov 2024 11:06:20 +0100 Subject: [PATCH] cli/command/container: fix missing go:build tag make shell make -C ./internal/gocompat/ GO111MODULE=on go test -v # github.com/docker/cli/cli/command/container ../../cli/command/container/completion.go:37:28: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) ../../cli/command/container/completion.go:82:25: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) ../../cli/command/container/completion.go:92:27: implicit function instantiation requires go1.18 or later (-lang was set to go1.16; check go.mod) FAIL gocompat [build failed] Signed-off-by: Sebastiaan van Stijn (cherry picked from commit d1d5353269750bca6ffcb51f461c849174d9520c) Signed-off-by: Sebastiaan van Stijn --- cli/command/container/completion.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cli/command/container/completion.go b/cli/command/container/completion.go index 35a02f4d2e..552fbecff7 100644 --- a/cli/command/container/completion.go +++ b/cli/command/container/completion.go @@ -1,3 +1,7 @@ +// 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 + package container import (