Skip to content

Commit e8808e4

Browse files
committed
Ensure dependencies are built before test
Signed-off-by: Hidde Beydals <[email protected]>
1 parent 86c3648 commit e8808e4

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Makefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ endif
2525
all: manager
2626

2727
# Run tests
28-
test:
28+
test: $(PKG_CONFIG_PATH)
2929
PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) \
3030
LD_LIBRARY_PATH=$(LD_LIBRARY_PATH) \
3131
go test --tags $(GO_TAGS) ./... -coverprofile cover.out
@@ -101,6 +101,9 @@ docker-build:
101101
docker-push:
102102
docker push ${IMG}
103103

104+
$(PKG_CONFIG_PATH):
105+
make -C hack/libgit2-static/
106+
104107
# Find or download controller-gen
105108
controller-gen:
106109
ifeq (, $(shell which controller-gen))
@@ -117,7 +120,6 @@ else
117120
CONTROLLER_GEN=$(shell which controller-gen)
118121
endif
119122

120-
121123
gen-crd-api-reference-docs: ## Find or download gen-crd-api-reference-docs
122124
ifeq (, $(shell which gen-crd-api-reference-docs))
123125
@{ \

0 commit comments

Comments
 (0)