build: Update go directive to 1.17 (fixes #8258) (#8260)

This should fix compiling from the source tarball with Go 1.18.
This commit is contained in:
Jeffery To
2022-04-09 22:01:24 +08:00
committed by GitHub
parent 072fa46bfd
commit e30898ddb3
3 changed files with 25 additions and 8 deletions

View File

@@ -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()