• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

supabase / cli / 28239246635

26 Jun 2026 12:47PM UTC coverage: 65.001% (+0.02%) from 64.981%
28239246635

push

github

web-flow
fix(cli): skip empty schema_paths globs in db diff (#5702)

## TL;DR

Fixes a regression in `supabase db diff` where declarative
`schema_paths` entries that currently match no files
would abort the command instead of being skipped

## What’s fixed?

loading path now ignores empty `schema_paths` glob matches while still
preserving existing behavior for valid matches, deterministic ordering,
deduping, and invalid glob errors

**Before:**

Projects using declarative schema config like:
would fail if one of those globs matched nothing, with an error like:

```text
no files matched pattern: supabase/schemas/materialized_views/*.sql
```

That turned a normal incremental-adoption setup into a fatal `db diff`
failure

**After:**

skips empty `schema_paths` glob entries and continues diffing with the
files that do exist,
matching the expected existing behavior

## Ref

- closes #5700

10982 of 16895 relevant lines covered (65.0%)

10.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

61.27
/internal/db/diff/diff.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc