aboutsummaryrefslogtreecommitdiff
path: root/build.sh
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2020-09-19 01:49:50 -0400
committerMitch Riedstra <mitch@riedstra.us>2020-09-19 01:52:49 -0400
commit3b94493a21f227962a01ec0b11fd855178985604 (patch)
tree6fbf6e17667c8848e93031aba1638e897b56eb85 /build.sh
parent9b849e00766b1dd0dfc9d603c18c90be3493b97b (diff)
downloadgo-website-3b94493a21f227962a01ec0b11fd855178985604.tar.gz
go-website-3b94493a21f227962a01ec0b11fd855178985604.tar.xz
Allow for setting of the time format in the page library. Support tags. Rename Name to Path to better reflect what it is.v0.0.6
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/build.sh b/build.sh
index 1320fdf..21f46a5 100755
--- a/build.sh
+++ b/build.sh
@@ -5,7 +5,7 @@ LICENSE="$(cat LICENSE)"
version="$(git log --format="%h %d" -1)
Source code can be found here:
-https://git.riedstra.us/mitch/go-website.git
+https://git.riedstra.dev/mitch/go-website
$LICENSE"
@@ -13,4 +13,6 @@ if ! git diff-index --quiet HEAD ; then
version="dirty: $version"
fi
+export CGO_ENABLED=0
+
go build -ldflags="-X 'main.VersionString=$version'" ./cmd/server