Skip to content

Commit 07d1fe7

Browse files
pwittrockdroot
authored andcommitted
Do hack/boilerplate.go.txt before vendor in case vendor fails
1 parent c65b397 commit 07d1fe7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cmd/kubebuilder/initproject/init.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ func runInitRepo(cmd *cobra.Command, args []string) {
9494
RunVendorInstall(nil, nil)
9595

9696
createBoilerplate()
97+
RunVendorInstall(nil, nil)
9798
fmt.Printf("Next: Define a resource with:\n" +
9899
"$ kubebuilder create resource\n")
99100
}
@@ -107,8 +108,8 @@ func execute(path, templateName, templateValue string, data interface{}) {
107108
}
108109

109110
type templateArgs struct {
110-
BoilerPlate string
111-
Repo string
111+
BoilerPlate string
112+
Repo string
112113
ControllerOnly bool
113114
}
114115

0 commit comments

Comments
 (0)