mirror of https://github.com/tidwall/tile38.git
disabled git lookup
This commit is contained in:
parent
c63468a704
commit
8be1890b1d
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue