From 7f6d72d0fa0a941d8d2ffb7ad625c4585b20e817 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Wed, 7 Jun 2017 10:35:45 +0900 Subject: [PATCH] Fetch tags before building Syncthing (fixes #872) --- make-syncthing.bash | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/make-syncthing.bash b/make-syncthing.bash index 06e26b0e..0b5b7235 100755 --- a/make-syncthing.bash +++ b/make-syncthing.bash @@ -49,6 +49,10 @@ unset GOOS _GOARCH=$GOARCH unset GOARCH +# Make sure all tags are available for git describe +# https://github.com/syncthing/syncthing-android/issues/872 +git fetch --tags + go run build.go -goos=${_GOOS} -goarch=${_GOARCH} clean go run build.go -goos=${_GOOS} -goarch=${_GOARCH} -no-upgrade build