Skip to content

Commit

Permalink
Replace go run with executable
Browse files Browse the repository at this point in the history
Signed-off-by: thepetk <[email protected]>
  • Loading branch information
thepetk committed Nov 21, 2023
1 parent e33c928 commit ac1cfa3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion generator/crds/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion generator/getters/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion generator/interfaces/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}{}))
Expand Down
2 changes: 1 addition & 1 deletion generator/overrides/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion generator/schemas/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion generator/validate/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ac1cfa3

Please sign in to comment.