disabled git lookup

This commit is contained in:
uwer 2023-05-03 16:23:04 +10:00
parent c63468a704
commit 8be1890b1d
1 changed files with 6 additions and 6 deletions

View File

@ -16,12 +16,12 @@ if [ "$(which go)" == "" ]; then
fi fi
# Hardcode some values to the core package. # Hardcode some values to the core package.
if [ -d ".git" ]; then #if [ -d ".git" ]; then
VERSION=$(git describe --tags --abbrev=0) # VERSION=$(git describe --tags --abbrev=0)
GITSHA=$(git rev-parse --short HEAD) # GITSHA=$(git rev-parse --short HEAD)
LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.Version=${VERSION}" # LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.Version=${VERSION}"
LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.GitSHA=${GITSHA}" # LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.GitSHA=${GITSHA}"
fi #fi
LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.BuildTime=$(date +%FT%T%z)" LDFLAGS="$LDFLAGS -X github.com/tidwall/tile38/core.BuildTime=$(date +%FT%T%z)"
# Generate the core package # Generate the core package