Skip to content

Commit

Permalink
Run gazelle after generating code
Browse files Browse the repository at this point in the history
  • Loading branch information
pwittrock committed Oct 12, 2017
1 parent f1b8b61 commit ba49371
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/apiserver-boot/boot/build/build_executables.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,11 @@ func RunBuildExecutables(cmd *cobra.Command, args []string) {
}

func BazelBuild(cmd *cobra.Command, args []string) {
if GenerateForBuild {
log.Printf("regenerating generated code. To disable regeneration, run with --generate=false.")
RunGenerate(cmd, args)
}

if Gazelle {
c := exec.Command("gazelle", "update",
"-go_prefix", util.Repo, "-external", "vendored", "pkg", "cmd")
Expand All @@ -92,11 +97,6 @@ func BazelBuild(cmd *cobra.Command, args []string) {
}
}

if GenerateForBuild {
log.Printf("regenerating generated code. To disable regeneration, run with --generate=false.")
RunGenerate(cmd, args)
}

c := exec.Command("bazel", "build",
filepath.Join("cmd", "apiserver"),
filepath.Join("cmd", "controller-manager"))
Expand Down

0 comments on commit ba49371

Please sign in to comment.