diff --git a/internal/makefile/makefile.go b/internal/makefile/makefile.go index 4a30057..a12db04 100644 --- a/internal/makefile/makefile.go +++ b/internal/makefile/makefile.go @@ -277,7 +277,7 @@ endif goTest := fmt.Sprintf(`%s $(GO_BUILDFLAGS) -ldflags '%s $(GO_LDFLAGS)' -p 1 -coverprofile=$@ -covermode=count -coverpkg=$(subst $(space),$(comma),$(GO_COVERPKGS)) $(GO_TESTPKGS)`, testRunner, makeDefaultLinkerFlags(path.Base(sr.MustModulePath()), sr)) if sr.KubernetesController { - testRule.prerequisites = append(testRule.prerequisites, "generate", "install-controller-gen", "install-setup-envtest") + testRule.prerequisites = append(testRule.prerequisites, "generate", "install-setup-envtest") testRule.recipe = append(testRule.recipe, fmt.Sprintf(`KUBEBUILDER_ASSETS="$(shell setup-envtest use %s --bin-dir $(TESTBIN) -p path)" %s`, sr.KubernetesVersion, goTest)) } else { testRule.recipe = append(testRule.recipe, `@env $(GO_TESTENV) `+goTest)