supabase-community / postgrest-go

Isomorphic Go client for PostgREST. (Now Updating)
https://supabase.io
Apache License 2.0
170 stars 27 forks source link

Go get and go get -u are installing with an older-version of client.go #50

Open ZanzyTHEbar opened 3 months ago

ZanzyTHEbar commented 3 months ago

Bug report

Describe the bug

When i add the module using the go cli the client.go file is outdated and does not contain the new methods for setting the auth token. However, when i go to the github these methods are present.

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Install the module with go get github.com/supabase-community/postgrest-go or go get -u github.com/supabase-community/postgrest-go

Expected behavior

I expect the new methods to be present. This issue is breaking supabase-community/supabase-go due to this issue.

Screenshots

image

As can be seen in this screen shot, the 0.0.10v release, which is the newest, still has the `TokenAuth method and none of the new methods.

System information

Additional context

Add any other context about the problem here.

tranhoangvuit commented 3 months ago

Hi @ZanzyTHEbar, sorry for the missing information. We separated TokenAuth into SetApiKey and SetAuthToken for better readability in the new tag v0.0.11

image