diff --git a/generator/crds/gen.go b/generator/crds/gen.go index 350116db9..d218298ed 100644 --- a/generator/crds/gen.go +++ b/generator/crds/gen.go @@ -31,7 +31,7 @@ import ( "sigs.k8s.io/controller-tools/pkg/markers" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2020 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2020 paths=. // +controllertools:marker:generateHelp diff --git a/generator/getters/gen.go b/generator/getters/gen.go index 8f4ee31ea..32b5087da 100644 --- a/generator/getters/gen.go +++ b/generator/getters/gen.go @@ -29,7 +29,7 @@ import ( "sigs.k8s.io/controller-tools/pkg/markers" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2021 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2021 paths=. var ( // GetterTypeMarker is associated with a type that's used as the pointer receiver of the getter method diff --git a/generator/interfaces/gen.go b/generator/interfaces/gen.go index c52e58db0..9b75d2476 100644 --- a/generator/interfaces/gen.go +++ b/generator/interfaces/gen.go @@ -31,7 +31,7 @@ import ( "github.com/elliotchance/orderedmap" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2020 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2020 paths=. var ( toplevelListMarker = markers.Must(markers.MakeDefinition("devfile:toplevellist", markers.DescribesField, struct{}{})) diff --git a/generator/overrides/gen.go b/generator/overrides/gen.go index c098cf527..3e19360c8 100644 --- a/generator/overrides/gen.go +++ b/generator/overrides/gen.go @@ -38,7 +38,7 @@ import ( "github.com/elliotchance/orderedmap" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2020 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2020 paths=. // +controllertools:marker:generateHelp:category=Overrides diff --git a/generator/schemas/gen.go b/generator/schemas/gen.go index 6f9cae910..db22f6646 100644 --- a/generator/schemas/gen.go +++ b/generator/schemas/gen.go @@ -43,7 +43,7 @@ import ( "gomodules.xyz/orderedmap" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2020 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2020 paths=. // +controllertools:marker:generateHelp:category=Devfile diff --git a/generator/validate/gen.go b/generator/validate/gen.go index c4b4ce5f7..eafb3bf9c 100644 --- a/generator/validate/gen.go +++ b/generator/validate/gen.go @@ -29,7 +29,7 @@ import ( "sigs.k8s.io/controller-tools/pkg/markers" ) -//go:generate go run -mod=mod sigs.k8s.io/controller-tools/cmd/helpgen generate:headerFile=../header.go.txt,year=2020 paths=. +//go:generate helpgen generate:headerFile=../header.go.txt,year=2020 paths=. // +controllertools:marker:generateHelp