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 <jonathan.sternberg@docker.com>
This commit is contained in:
Jonathan A. Sternberg 2024-03-28 13:53:36 -05:00
parent 400a8bb4a2
commit 2a3b6c03f7
No known key found for this signature in database
GPG Key ID: 6603D4B96394F6B1
1 changed files with 3 additions and 0 deletions

View File

@ -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 (