This is an automated email from the ASF dual-hosted git repository.

lynwee pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-devlake.git


The following commit(s) were added to refs/heads/main by this push:
     new ca8b887e5 fix: try fixing docker image not showing the correct version 
(#8436)
ca8b887e5 is described below

commit ca8b887e58285ad64ab0d2702d4b553c95424af0
Author: Klesh Wong <[email protected]>
AuthorDate: Mon May 12 15:12:12 2025 +0800

    fix: try fixing docker image not showing the correct version (#8436)
---
 backend/Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/backend/Makefile b/backend/Makefile
index 773f305fa..6046baa2c 100644
--- a/backend/Makefile
+++ b/backend/Makefile
@@ -17,8 +17,8 @@
 # https://stackoverflow.com/questions/920413/make-error-missing-separator
 # https://tutorialedge.net/golang/makefiles-for-go-developers/
 
-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)
+SHA ?= $(shell if [ -d .git ]; then git show -s --format=%h; else echo 
"unknown_sha"; fi)
+TAG ?= $(shell if [ -d .git ]; then git tag --points-at HEAD; else echo 
"local_build"; fi)
 IMAGE_REPO ?= "apache"
 VERSION = $(TAG)@$(SHA)
 PYTHON_DIR ?= "./python"

Reply via email to