cayleygraph / cayley

An open-source graph database
https://cayley.io
Apache License 2.0
14.8k stars 1.25k forks source link

Fixed tests on Go 1.16 / gotip #953

Closed oxisto closed 2 years ago

oxisto commented 3 years ago

This change is Reviewable

oxisto commented 3 years ago

Strange... while this fixes the tests on Go 1.16 (and above - tested with go tip). The gotip travis environment still fails with weird go.sum errors, which I cannot reproduce.

Update: It looks like the culprit is the go get -u golang.org/x/lint/golint line, this behaves differently on 1.13 and 1.16+. In recent versions of Go, this will add additional entries to the go.mod file and thus, it will complain that the go.sum entries are not there.

Update 2: Switching to go vet on go tip (in non-fail mode) and the tests run, hooray.