File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1717# https://stackoverflow.com/questions/920413/make-error-missing-separator
1818# https://tutorialedge.net/golang/makefiles-for-go-developers/
1919
20- SHA ? = $(shell git show -s --format=% h)
21- TAG ? = $(shell git tag --points-at HEAD)
20+ SHA : = $(shell if [ -d . git ]; then git show -s --format=% h; else echo "default_SHA"; fi )
21+ TAG : = $(shell if [ -d . git ]; then git tag --points-at HEAD; else echo "default_TAG"; fi )
2222IMAGE_REPO ?= "apache"
2323VERSION = $(TAG ) @$(SHA )
2424
Original file line number Diff line number Diff line change 1717# https://stackoverflow.com/questions/920413/make-error-missing-separator
1818# https://tutorialedge.net/golang/makefiles-for-go-developers/
1919
20- SHA ? = $(shell git show -s --format=% h)
21- TAG ? = $(shell git tag --points-at HEAD)
20+ SHA : = $(shell if [ -d . git ]; then git show -s --format=% h; else echo "default_SHA"; fi )
21+ TAG : = $(shell if [ -d . git ]; then git tag --points-at HEAD; else echo "default_TAG"; fi )
2222IMAGE_REPO ?= "apache"
2323VERSION = $(TAG ) @$(SHA )
2424PYTHON_DIR ?= "./python"
You can’t perform that action at this time.
0 commit comments