Skip to content

fix(cli-go): avoid requiring local stack for gen types with explicit --db-url#5304

Open
mikkelam wants to merge 1 commit into
supabase:developfrom
mikkelam:fix/gen-types-db-url
Open

fix(cli-go): avoid requiring local stack for gen types with explicit --db-url#5304
mikkelam wants to merge 1 commit into
supabase:developfrom
mikkelam:fix/gen-types-db-url

Conversation

@mikkelam
Copy link
Copy Markdown

fix(cli-go): avoid requiring local stack for gen types with explicit --db-url

What kind of change does this PR introduce?

Bug fix.

What is the current behavior?

supabase gen types --db-url ... can fail with supabase start is not running when the provided DB URL points to localhost local stack defaults, even though --db-url is explicitly set and the target DB is reachable without supabase start.

Issue: #5283

What is the new behavior?

When --db-url is explicitly provided, gen types no longer enforces local stack running checks.
It uses the provided connection directly, including localhost targets managed outside supabase start (for example Docker Compose).

Added regression coverage in internal/gen/types/types_test.go for explicit --db-url on localhost.

Additional context

Scope is intentionally narrow:

  • behavior change applies only to explicit --db-url in gen types
  • default local/linked flows are unchanged

@mikkelam mikkelam requested a review from a team as a code owner May 19, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant