mirror of
https://github.com/kubevirt/containerized-data-importer.git
synced 2025-06-03 06:30:22 +00:00

make deps-update will not ignore it and properly vendor in k8s.io/code-generator. By using the +build tag will cause the build to not include this code during a build unless the codegen tag is used. // +build ignore is special apparently https://github.com/golang/go/issues/29598 Signed-off-by: Alexander Wels <awels@redhat.com>
10 lines
206 B
Go
10 lines
206 B
Go
// VSCODE will say this is an error, but it's fine
|
|
// +build codegen
|
|
|
|
package tools
|
|
|
|
import (
|
|
// the puropse of this import is to get gomod to bring in code generator and deps
|
|
_ "k8s.io/code-generator"
|
|
)
|