mirror of https://github.com/docker/cli.git
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:
parent
400a8bb4a2
commit
2a3b6c03f7
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue