-
-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Supabase CLI: supabase gen types —lang=go non-functional #31312
Comments
Where did you find reference to the CLI generating go types? as far as I'm aware it only generates Typescript types at the moment. |
In the comments on line 96 https://github.com/supabase/cli/blob/main/cmd/gen.go This should probably be on the supabase-cli repo. |
At line 41 the tool returns the same error if the lang is not typescript. I think, this just isn't implemented yet. https://github.com/supabase/cli/blob/develop/internal/gen/types/types.go |
It is also defined in the documentation that Typescript, Go, and Swift types can be generated https://supabase.com/docs/reference/cli/supabase-gen-types @silentworks I ended up taking a manual approach, but this would be an awesome feature. If I have additional time, I’ll look into the links @FFX3 shared and see if I can figure out how to implement / finish implementing. From what I have seen @isaacharrisholt was working on it on this branch: https://github.com/isaacharrisholt/postgres-meta/tree/feat/go_typegen_types |
@David-Botos thanks for pointing that out. I didn't even realize they added more languages. |
I've not touched this for a while. I can't remember if it got merged or not. |
Bug report
Describe the bug
Running
throws:
Unable to generate go types for selected project. Try using --db-url flag instead.
and
throws:
supabase start is not running.
Supabase start is running, and I checked immediately after using both docker ps and supabase status.
Under the same conditions, with no additional configuration, running:
works just fine, so it appears this is isolated to just generating Go types.
To Reproduce
These are the steps I took exactly:
Expected behavior
described above
System information
supabase cli v2.1.1 (latest as of 12/23)
The text was updated successfully, but these errors were encountered: