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

supabase / cli / 28366024554
65%
develop: 65%

Build:
Build:
LAST BUILD BRANCH: gh-readonly-queue/develop/pr-5848-351d02529ed33846be30ecfe077a523660327e55
DEFAULT BRANCH: develop
Ran 29 Jun 2026 10:40AM UTC
Jobs 1
Files 229
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Jun 2026 10:37AM UTC coverage: 65.001%. Remained the same
28366024554

push

github

web-flow
fix(cli): handle AlreadyExists errors in directory creation (#5724)

Extract directory creation logic into a new `legacyMakeDir` utility that
matches Go's `os.MkdirAll` behavior by treating an already-existing
directory as success.

The Effect/Bun `FileSystem.makeDirectory` API can surface an
`AlreadyExists` `SystemError` for existing directories on some platforms
(notably Windows with OneDrive reparse points — CLI-1849), even with
`recursive: true`. This differs from Go's `os.MkdirAll`, which returns
nil when the target is already a directory.

**Key changes:**
- Add `legacyMakeDir` utility in
`apps/cli/src/legacy/shared/legacy-make-dir.ts` that wraps
`FileSystem.makeDirectory` and recovers from `AlreadyExists` errors
- Add comprehensive unit tests covering success case, `AlreadyExists`
recovery, and error propagation
- Replace three inline `makeDirectory` calls in `db diff`, `db pull`,
and `db schema declarative sync` handlers with `legacyMakeDir`

This ensures the CLI's migration writers never fail on a pre-existing
`supabase/migrations` directory, matching the original Go
implementation's behavior.

https://claude.ai/code/session_01AWa8Hr8BS2pZucac9r3wb7

Co-authored-by: Claude <noreply@anthropic.com>

10982 of 16895 relevant lines covered (65.0%)

10.44 hits per line

Jobs
ID Job ID Ran Files Coverage
1 28366024554.1 29 Jun 2026 10:40AM UTC 229
65.0
GitHub Action Run
Source Files on build 28366024554
  • Tree
  • List 229
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #28366024554
  • 8d2e6d67 on github
  • Prev Build on gh-readonly-queue/develop/pr-5721-44705dfa204ab25908844385a82d9951df0a7943 (#28361680167)
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