supabase-community / postgrest-go

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

add client info header for postgrest-go #19

Closed bariqhibat closed 2 years ago

bariqhibat commented 2 years ago

Signed-off-by: Bariq bariqhibat@gmail.com

Resolves #16

yusufpapurcu commented 2 years ago

Thanks for help 💯 Executing git is may not work in production. We can do this like js library. Set version constant in the client. And use it in X-Client-Info.

bariqhibat commented 2 years ago

Thanks for help 💯 Executing git is may not work in production. We can do this like js library. Set version constant in the client. And use it in X-Client-Info.

Yeah this is particularly a hacky way to do it haha. So that means we hardcoded it for each releases is it?

yusufpapurcu commented 2 years ago

Hardcoding is a more safe way to do it. Also who wants running git in every initialization 😆

bariqhibat commented 2 years ago

Hardcoding is a more safe way to do it. Also who wants running git in every initialization 😆

Okie just made the change!

yusufpapurcu commented 2 years ago

Excellent 🚀

Long live hardcoding 😄