flatbuffers: Checksum mismatch: go get github.com/google/flatbuffers/go

Could not get the library due to checksum mismatch:

$ go get -u github.com/google/flatbuffers/go
go: downloading github.com/google/flatbuffers v1.12.0
go get github.com/google/flatbuffers/go: github.com/google/flatbuffers@v1.12.0: verifying module: checksum mismatch
        downloaded: h1:N8EguYFm2wwdpoNcpchQY0tPs85vOJkboFb2dPxmixo=
        sum.golang.org: h1:/PtAHvnBY4Kqnx/xCQ3OIV9uYcSFGScBsWI3Oogeh6w=

SECURITY ERROR
This download does NOT match the one reported by the checksum server.
The bits may have been replaced on the origin server, or an attacker may
have intercepted the download attempt.

For more information, see 'go help module-auth'.
$ go version
go version go1.15.7 darwin/amd64

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 25

Commits related to this issue

Most upvoted comments

I’ve resolved the issue. I set the GOPROXY variable explicitly:

go mod tidy
GOPROXY=proxy.golang.org go get -u github.com/google/flatbuffers/go

Somehow, my default GOPROXY was pointed wrongly at proxy.golang.com.cn.

We now have https://github.com/google/flatbuffers/tree/v1.12.1

Note I will be releasing v2.0.0 likely today, so some of you may want to update to that instead.

Agreed, creating that tag would be very helpful for those with indirect (or direct!) dependencies.

@Avokadoen Using a replace directive will work, but it also introduces a small risk - later if some code you depend on uses the upcoming v1.20.0 version, your builds won’t pick that up automatically. Just something to watch out for.

I do believe that creating a v1.12.1 release would at least help those of us that has flatbuffers as a indirect dependency to resolve our CI issues using the replace directive. Thanks you @aardappel for all the hard work you do on this project, and thank you @ceejatec for investigating! ❤️