Which means that we can now use 1.18 features, as per our policy. Generics ahoy.
7 Likes
The current main
fails to build on Go 1.19 in my tests with the following error.
# github.com/lucas-clemente/quic-go/internal/qtls
C:\...\go\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
Also, when trying to run
go install github.com/syncthing/syncthing/cmd/stsigtool@latest
I get
go: github.com/syncthing/syncthing/cmd/stsigtool@latest (in github.com/syncthing/syncthing@v1.20.4):
The go.mod file for the module providing named packages contains one or
more replace directives. It must not contain directives that would cause
it to be interpreted differently than if it were the main module.
Not sure whether this is important or not though.
I fixed that yesterday, you probably need to pull.
3 Likes