From 451fee91c52a1e7bc25dcde2543642615770a7c8 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 15 Nov 2024 12:53:42 +0100 Subject: [PATCH] libnetwork: add missing go:build tag This was introduced in 18327745c00d4d2e98e5ea7241c1a1ef43b0401b; make BIND_DIR=. shell make -C ./internal/gocompat/ GO111MODULE=on go test -v # github.com/docker/docker/libnetwork ../../libnetwork/sandbox.go:588:6: 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 --- libnetwork/sandbox.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libnetwork/sandbox.go b/libnetwork/sandbox.go index 5a80470533..1fe9ed522a 100644 --- a/libnetwork/sandbox.go +++ b/libnetwork/sandbox.go @@ -1,3 +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 + package libnetwork import (