aboutsummaryrefslogtreecommitdiff
path: root/build.go
diff options
context:
space:
mode:
authorJeffery To <jeffery.to@gmail.com>2022-04-09 22:01:24 +0800
committerGitHub <noreply@github.com>2022-04-09 16:01:24 +0200
commite30898ddb3e51225d4bda8661a1510c5cc9afe08 (patch)
tree7493cbf81e558b0ff3f10499fc6330ae3032dd2b /build.go
parent072fa46bfd088bfc4c5b77fba07570c5084f3245 (diff)
downloadsyncthing-e30898ddb3e51225d4bda8661a1510c5cc9afe08.tar.gz
syncthing-e30898ddb3e51225d4bda8661a1510c5cc9afe08.zip
build: Update go directive to 1.17 (fixes #8258) (#8260)
This should fix compiling from the source tarball with Go 1.18.
Diffstat (limited to 'build.go')
-rw-r--r--build.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/build.go b/build.go
index 7888c834d..71cdf12d6 100644
--- a/build.go
+++ b/build.go
@@ -883,7 +883,7 @@ func shouldRebuildAssets(target, srcdir string) bool {
func updateDependencies() {
runPrint(goCmd, "get", "-u", "./cmd/...")
- runPrint(goCmd, "mod", "tidy", "-go=1.16", "-compat=1.16")
+ runPrint(goCmd, "mod", "tidy", "-go=1.17", "-compat=1.17")
// We might have updated the protobuf package and should regenerate to match.
proto()