Skip to content

Commit

Permalink
fix: non-git users can build devlake (#7995) (#7996)
Browse files Browse the repository at this point in the history
Co-authored-by: abeizn <[email protected]>
  • Loading branch information
github-actions[bot] and abeizn authored Nov 6, 2024
1 parent b34d525 commit f5e4b68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/

SHA ?= $(shell git show -s --format=%h)
TAG ?= $(shell git tag --points-at HEAD)
SHA := $(shell if [ -d .git ]; then git show -s --format=%h; else echo "default_SHA"; fi)
TAG := $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo "default_TAG"; fi)
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)

Expand Down
4 changes: 2 additions & 2 deletions backend/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
# https://stackoverflow.com/questions/920413/make-error-missing-separator
# https://tutorialedge.net/golang/makefiles-for-go-developers/

SHA ?= $(shell git show -s --format=%h)
TAG ?= $(shell git tag --points-at HEAD)
SHA := $(shell if [ -d .git ]; then git show -s --format=%h; else echo "default_SHA"; fi)
TAG := $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo "default_TAG"; fi)
IMAGE_REPO ?= "apache"
VERSION = $(TAG)@$(SHA)
PYTHON_DIR ?= "./python"
Expand Down

0 comments on commit f5e4b68

Please sign in to comment.