Skip to content

Commit

Permalink
Use "dep" to import dependencies for generated project
Browse files Browse the repository at this point in the history
  • Loading branch information
droot committed May 8, 2018
1 parent 158c292 commit 84c8133
Show file tree
Hide file tree
Showing 5 changed files with 250 additions and 148 deletions.
3 changes: 2 additions & 1 deletion cmd/kubebuilder/create/resource/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,13 @@ import (
"log"
"os"

"strings"

createutil "github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/create/util"
generatecmd "github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/generate"
"github.com/kubernetes-sigs/kubebuilder/cmd/kubebuilder/util"
"github.com/markbates/inflect"
"github.com/spf13/cobra"
"strings"
)

var nonNamespacedKind bool
Expand Down
2 changes: 1 addition & 1 deletion cmd/kubebuilder/initproject/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ func runInitRepo(cmd *cobra.Command, args []string) {
cr := util.GetCopyright(copyright)

fmt.Printf("Initializing project structure...\n")
RunVendorInstall(nil, nil)
if bazel {
createBazelWorkspace()
}
Expand All @@ -87,6 +86,7 @@ func runInitRepo(cmd *cobra.Command, args []string) {
doInject(cr)
doArgs(cr)
//os.MkdirAll("bin", 0700)
RunVendorInstall(nil, nil)

createBoilerplate()
fmt.Printf("Next: Define a resource with:\n" +
Expand Down
Loading

0 comments on commit 84c8133

Please sign in to comment.