Getting cloud.google.com/go/datastore gives malformed record data for golang.org/x/lint

735 Views Asked by At

I have a Go module where I am trying to integrate with Google Cloud store. I am using Go v1.14. When I do go get on the cloud datastore, it gives the following error.

go: cloud.google.com/go/datastore upgrade => v1.1.0
go get: cloud.google.com/go/[email protected] requires
    google.golang.org/[email protected] requires
    cloud.google.com/[email protected] requires
    golang.org/x/[email protected]/go.mod: verifying module: golang.org/x/[email protected]/go.mod: malformed record data

Below are the contents of my go.mod file

module <MyNamespace>.com/<moduleName>

go 1.14

require (
    github.com/stretchr/testify v1.5.1
)

I don’t really understand the error. How can I understand it?

1

There are 1 best solutions below

1
On

After struggling for a few hours I discovered that trying the same after clearing local cache worked. I am not getting this exception any more.