earthly: all git commands to fail in ci

This commit is contained in:
Patrick Pacher
2024-03-27 14:57:33 +01:00
parent ba54bed5b6
commit 1cec92263d

View File

@@ -66,11 +66,11 @@ go-base:
LET version = $(git tag --points-at)
IF [ "${version}" = "" ]
SET version = $(git describe --tags --abbrev=0)
SET version = $(git describe --tags --abbrev=0 || echo "dev build")
END
ENV VERSION="${version}"
LET source = $(git remote -v | cut -f2 | cut -d" " -f1 | head -n 1)
LET source = $( ( git remote -v | cut -f2 | cut -d" " -f1 | head -n 1 ) || echo "unknown source" )
ENV SOURCE="${source}"
# updates all go dependencies and runs go mod tidy, saving go.mod and go.sum locally.