Skip to content

Commit c557168

Browse files
committed
Update alpha generate command so that --repo is always included when running kubebuilder init to fix issue when not on GOPATH
1 parent f9bef1c commit c557168

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/cli/alpha/internal/generate.go

+3
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ func getInitArgs(store store.Store) []string {
262262
if domain := store.Config().GetDomain(); domain != "" {
263263
args = append(args, "--domain", domain)
264264
}
265+
if repo := store.Config().GetRepository(); repo != "" {
266+
args = append(args, "--repo", repo)
267+
}
265268
return args
266269
}
267270

0 commit comments

Comments
 (0)