Skip to content

Commit cf32652

Browse files
authored
[query] error in Make if git is missing (#12872)
1 parent 3f87182 commit cf32652

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

hail/Makefile

+11
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,17 @@ HAIL_PIP_VERSION := $(HAIL_MAJOR_MINOR_VERSION).$(HAIL_PATCH_VERSION)
1919
HAIL_VERSION := $(HAIL_PIP_VERSION)-$(SHORT_REVISION)
2020
ELASTIC_MAJOR_VERSION ?= 7
2121

22+
ifndef REVISION
23+
$(error "git rev-parse HEAD" failed to produce output)
24+
endif
25+
26+
ifndef SHORT_REVISION
27+
$(error "git rev-parse --short=12 HEAD" failed to produce output)
28+
endif
29+
30+
ifndef BRANCH
31+
$(error "git rev-parse --abbrev-ref HEAD" failed to produce output)
32+
endif
2233

2334
$(eval $(call ENV_VAR,REVISION))
2435
$(eval $(call ENV_VAR,SHORT_REVISION))

0 commit comments

Comments
 (0)