anyproto / any-sync-coordinator

Implementation of coordinator node from any-sync protocol
https://anytype.io
MIT License
22 stars 12 forks source link

Meet go version incompatibility when building, QUIC-GO #41

Closed xiaoland closed 9 months ago

xiaoland commented 9 months ago

Have you read a contributing guide?

Current Behavior

make: *** [Makefile:17: build] Error 1

Expected Behavior

success message

Steps To Reproduce

  1. RockyLinux 9, Go 1.19
  2. make build

Environment

- OS: RockyLinux
- Version: 9

- Go: 1.19
- follow [https://tech.anytype.io/how-to/self-hosting](https://tech.anytype.io/how-to/self-hosting)

Anything else?

Stderr

failed to collect values: failed to get commit: git: error="exit status 128" stderr=fatal: not a git repository (or any parent up to mount point /mnt)
Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
GOOS=linux GOARCH=amd64 go build  -v -o bin/any-sync-coordinator -ldflags " -X github.com/anyproto/any-sync/app.AppName=any-sync-coordinator" github.com/anyproto/any-sync-coordinator/cmd/coordinator
github.com/quic-go/quic-go/internal/qtls
# github.com/quic-go/quic-go/internal/qtls
/home/gopath/pkg/mod/github.com/quic-go/quic-go@v0.39.3/internal/qtls/go_oldversion.go:5:13: cannot use "The version of quic-go you're using can't be built using outdated Go versions. For more details, please see https://github.com/quic-go/quic-go/wiki/quic-go-and-Go-versions." (untyped string constant "The version of quic-go you're using can't be built using outdated Go...) as int value in variable declaration
**note: module requires Go 1.20**
make: *** [Makefile:17: build] Error 1

Result

fuksman commented 9 months ago

To ensure compatibility, please use Go version 1.21.

We will update the self-hosting how-to. Thank you for noticing.