aboutsummaryrefslogtreecommitdiff
path: root/community/syncthing/build
diff options
context:
space:
mode:
authorCem Keylan <cem@ckyln.com>2023-02-02 17:11:53 +0100
committerCem Keylan <cem@ckyln.com>2023-02-02 17:11:53 +0100
commit38b937fe5b5ad7db67b2d840aa8b5054aae2304e (patch)
tree9dcb1fdaef9395730d4497de051bb94b4d000038 /community/syncthing/build
parent09fa2aafcf1422a4f8a136e5a261927a4e27e8bf (diff)
downloadrepository-38b937fe5b5ad7db67b2d840aa8b5054aae2304e.tar.gz
syncthing: fix build with latest version of go
Diffstat (limited to 'community/syncthing/build')
-rwxr-xr-xcommunity/syncthing/build2
1 files changed, 2 insertions, 0 deletions
diff --git a/community/syncthing/build b/community/syncthing/build
index a4bd983e..43e614e4 100755
--- a/community/syncthing/build
+++ b/community/syncthing/build
@@ -4,6 +4,8 @@ export GOPATH="$PWD/gopath"
export GOFLAGS="$GOFLAGS -mod=vendor"
trap "go clean -modcache" EXIT INT
+patch -p1 < go-1.20.patch
+
go run build.go -no-upgrade -version "v$2" build
clinst -Dm755 syncthing "$1/usr/bin/syncthing"