Skip to content

Commit

Permalink
Do hack/boilerplate.go.txt before vendor in case vendor fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock authored and droot committed May 18, 2018
1 parent c65b397 commit 07d1fe7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions cmd/kubebuilder/initproject/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ func runInitRepo(cmd *cobra.Command, args []string) {
RunVendorInstall(nil, nil)

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

type templateArgs struct {
BoilerPlate string
Repo string
BoilerPlate string
Repo string
ControllerOnly bool
}

Expand Down

0 comments on commit 07d1fe7

Please sign in to comment.