From 2a3b6c03f7b6dbbc4c9049647bbc12ce8ce04be1 Mon Sep 17 00:00:00 2001 From: "Jonathan A. Sternberg" Date: Thu, 28 Mar 2024 13:53:36 -0500 Subject: [PATCH] cli: add go:build tag to the docker telemetry This is needed because the project does not have a `go.mod` file and gets sent to go 1.16 semantics whenever it's imported by another project and `any` doesn't exist in go 1.16, but the linter requires us to use `any` here. Setting the `go:build` tag forces the per-file language to the go version specified. Signed-off-by: Jonathan A. Sternberg --- cli/command/telemetry_docker.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/command/telemetry_docker.go b/cli/command/telemetry_docker.go index 45497aad9c2c..9f6253af4811 100644 --- a/cli/command/telemetry_docker.go +++ b/cli/command/telemetry_docker.go @@ -1,3 +1,6 @@ +// FIXME(jsternberg): remove once we are a module; the go:build directive prevents go from downgrading language version to go1.16: +//go:build go1.19 + package command import (