go install sneller -> syntax error
sanikolaev opened this issue · comments
Sergey Nikolaev commented
Hello
The Quick test drive https://github.com/SnellerInc/sneller#quick-test-drive is not working:
root@perf3 ~ # go install github.com/SnellerInc/sneller/cmd/sneller@latest
go: downloading github.com/SnellerInc/sneller v0.0.0-20220525035318-e886ff071693
go: downloading golang.org/x/sys v0.0.0-20211019181941-9d821ace8654
go: downloading golang.org/x/exp v0.0.0-20220428152302-39d4317da171
go: downloading github.com/dchest/siphash v1.2.3
go: downloading github.com/klauspost/compress v1.15.4
go: downloading golang.org/x/crypto v0.0.0-20220321153916-2c7772ba3064
go: downloading sigs.k8s.io/yaml v1.3.0
go: downloading gopkg.in/yaml.v2 v2.4.0
# github.com/SnellerInc/sneller/heap
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:22:14: syntax error: unexpected [, expecting (
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:22:58: method has multiple receivers
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:24:2: syntax error: non-declaration statement outside function body
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:31:14: syntax error: unexpected [, expecting (
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:31:48: method has multiple receivers
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:32:16: syntax error: unexpected newline, expecting type
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:33:2: syntax error: non-declaration statement outside function body
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:43:15: syntax error: unexpected [, expecting (
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:43:57: method has multiple receivers
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:45:2: syntax error: non-declaration statement outside function body
go/pkg/mod/github.com/!sneller!inc/sneller@v0.0.0-20220525035318-e886ff071693/heap/heap.go:45:2: too many errors
note: module requires Go 1.18
# golang.org/x/exp/constraints
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:13:2: syntax error: unexpected ~, expecting method or interface name
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:20:2: syntax error: unexpected ~, expecting method or interface name
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:27:9: syntax error: unexpected |, expecting semicolon or newline or }
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:34:2: syntax error: unexpected ~, expecting method or interface name
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:41:2: syntax error: unexpected ~, expecting method or interface name
go/pkg/mod/golang.org/x/exp@v0.0.0-20220428152302-39d4317da171/constraints/constraints.go:49:10: syntax error: unexpected |, expecting semicolon or newline or }
note: module requires Go 1.18
in
root@perf3 ~ # cat /etc/*release*
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=21.10
DISTRIB_CODENAME=impish
DISTRIB_DESCRIPTION="Ubuntu 21.10"
PRETTY_NAME="Ubuntu 21.10"
and
root@perf3 ~ # go version
go version go1.17 linux/amd64
(the default one which can be installed by apt install golang-go
.
Ramon de Klein commented
Our code requires at least Go v1.18. I see that your compilation fails on a line that uses generics that is a Go v1.18 feature. Please upgrade Go to v1.18.