client-go icon indicating copy to clipboard operation
client-go copied to clipboard

`go get` doesn't install the latest version

Open billinghamj opened this issue 2 years ago • 1 comments

Hi,

Not sure what exactly the cause of this problem is, but if you run either of:

go get github.com/sanity-io/client-go
go get -u github.com/sanity-io/client-go

You end up with v1.0.0-alpha.5.

Resulting contents of go.mod/go.sum:

github.com/sanity-io/client-go v1.0.0-alpha.5
github.com/sanity-io/client-go v1.0.0-alpha.5 h1:EVDgQ9MwTdWgOv4+DBhWA8fuPia+XTs0K1Edlgmvq7c=
github.com/sanity-io/client-go v1.0.0-alpha.5/go.mod h1:KPo6XA4dp/JaWto1JRqKMIK4Cp3s7AFeNGuxH25r1gM=

I can't find any reference to v1.0.0-alpha.5 anywhere, but (just by looking at the files etc), it appears to match to this commit: https://github.com/sanity-io/client-go/commit/62027d20d4ae9be5ffb5f86030489be691d41814

As a result, for external developers, it seems that this library effectively hasn't been updated since 2020, which also means e.g. it's not possible to use anything other than v1 of the API. Typical dependency management tooling like Dependabot also seem to be stuck on this old version.

To resolve this, I think you might need to start tagging releases in some form, but honestly not sure - just a suggestion you might want to try.

Did you maybe publish v1.0.0-alpha.5 at some point, then later deleted that tag?

Let me know if there's any info I can be providing :)

billinghamj avatar May 10 '22 11:05 billinghamj