We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f35e146 commit cf50b56Copy full SHA for cf50b56
Makefile
@@ -37,6 +37,7 @@ clean:
37
rm -rf ./bin
38
39
ci-preflight-checks:
40
+ $(MAKE) unshallow-ci-repository
41
$(MAKE) check-go-mod
42
$(MAKE) check-dockerfiles
43
$(MAKE) check-language
@@ -45,6 +46,15 @@ ci-preflight-checks:
45
46
$(MAKE) check-ocp-no-crds
47
$(MAKE) check-dirty
48
49
+unshallow-ci-repository:
50
+ifdef CI
51
+ $(info Running in CI; unshallowing the repository to ensure we have all tags and branches)
52
+ git config set remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
53
+ git fetch --all --quiet
54
+else
55
+ $(info Not running in CI; skipping unshallowing the repository)
56
+endif
57
+
58
check-go-mod:
59
$(DOCKER_GO_BUILD) ./hack/check-go-mod.sh
60
0 commit comments