Skip to content

Commit

Permalink
[query] error in Make if git is missing (#12872)
Browse files Browse the repository at this point in the history
  • Loading branch information
danking authored Apr 11, 2023
1 parent 3f87182 commit cf32652
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions hail/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,17 @@ HAIL_PIP_VERSION := $(HAIL_MAJOR_MINOR_VERSION).$(HAIL_PATCH_VERSION)
HAIL_VERSION := $(HAIL_PIP_VERSION)-$(SHORT_REVISION)
ELASTIC_MAJOR_VERSION ?= 7

ifndef REVISION
$(error "git rev-parse HEAD" failed to produce output)
endif

ifndef SHORT_REVISION
$(error "git rev-parse --short=12 HEAD" failed to produce output)
endif

ifndef BRANCH
$(error "git rev-parse --abbrev-ref HEAD" failed to produce output)
endif

$(eval $(call ENV_VAR,REVISION))
$(eval $(call ENV_VAR,SHORT_REVISION))
Expand Down

0 comments on commit cf32652

Please sign in to comment.