Skip to content

Commit bfa4780

Browse files
authored
chore: silence git describe errors in Docker make deps (#2823)
Silences the errors from running `make deps` locally and in CI: ``` => [auth 6/8] RUN make deps 15.5s => => # fatal: not a git repository (or any of the parent directories): .git => => # fatal: not a git repository (or any of the parent directories): .git => => # fatal: not a git repository (or any of the parent directories): .git => => # fatal: not a git repository (or any of the parent directories): .git => => # fatal: not a git repository (or any of the parent directories): .git => => # fatal: not a git repository (or any of the parent directories): .git ``` These warnings are expected when `.git` does not exist.
1 parent 79ad7b2 commit bfa4780

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎Makefile‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
CHECK_FILES ?= ./...
44

55
ifdef RELEASE_VERSION
6-
VERSION=v$(RELEASE_VERSION)
6+
VERSION := v$(RELEASE_VERSION)
77
else
8-
VERSION=$(shell git describe --tags)
8+
VERSION := $(shell git describe --tags 2>/dev/null)
99
endif
1010

1111
ifneq ($(shell docker compose version 2>/dev/null),)

0 commit comments

Comments
 (0)