Skip to content

Commit

Permalink
Install envtest when before running checks
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Feb 13, 2024
1 parent c6d8cd1 commit b508ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/makefile/makefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,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")
testRule.prerequisites = append(testRule.prerequisites, "generate", "install-controller-gen")
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)
Expand Down

0 comments on commit b508ef7

Please sign in to comment.