Opened 2 years ago

Closed 2 years ago

#65644 closed defect (fixed)

syncthing 1.20.4: build error: "quic-go can't be built on Go 1.19"

Reported by: vallon (Justin) Owned by:
Priority: Normal Milestone:
Component: ports Version: 2.7.2
Keywords: Cc: herbygillot (Herby Gillot), vallon (Justin)
Port: syncthing

Description

Snippet of build log:

:info:build ../../../../pkg/mod/github.com/lucas-clemente/quic-go@v0.27.0/internal/qtls/go119.go:6:13: cannot use "The version of quic-go you're using can't be built on Go 1.19 yet. For more details, please see https://github.com/lucas-clemente/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built on Go 1.19 yet. F...) as int value in variable declaration

That page talks about Quic supporting the latest 2 versions of Go.

Not attaching logs, as this seems unrelated to my local machine.

OS: Monterey

Change History (9)

comment:1 Changed 2 years ago by vallon (Justin)

Cc: vallon added

comment:2 Changed 2 years ago by thiagoveloso (Thiago V. dos Santos)

I second this bug report. The only workaround for me was to install specific, working versions of Go and Syncthing - 1.18.5_0 and 1.20.3_0 respectively.

comment:3 Changed 2 years ago by vallon (Justin)

Looks like quic-go 0.28.0 started supporting go 1.19 (beta), but notes on the tag v0.28.0 nor v0.28.1 mention the support.

comment:4 Changed 2 years ago by vallon (Justin)

SyncThing after 1.20.4 updated go.mod and upgraded quic-go from v0.27.0 to v0.28.1, though those changes have not been tagged - 1.20.4 is the latest non-rc release.

comment:5 Changed 2 years ago by vallon (Justin)

After upgrading Portfile to 1.21.0-rc.2 and adjusting checksums, syncthing was able to build. Will wait for 1.21.0 final before submitting patch.

comment:6 Changed 2 years ago by thiagoveloso (Thiago V. dos Santos)

Newly updated Syncthing v1.21.0 worked for me as well.

comment:7 Changed 2 years ago by vallon (Justin)

syncthing upgraded to 1.21.0 in commit 60c29aaaa; working again

comment:8 Changed 2 years ago by vallon (Justin)

Herby: fixed for me. Thanks. I can't close the ticket.

comment:9 Changed 2 years ago by herbygillot (Herby Gillot)

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.