Skip to content

Fix DB Open with relative paths.#36

Closed
dennwc wants to merge 2 commits intodolthub:mainfrom
dennwc:fix-relative-paths
Closed

Fix DB Open with relative paths.#36
dennwc wants to merge 2 commits intodolthub:mainfrom
dennwc:fix-relative-paths

Conversation

@dennwc
Copy link
Contributor

@dennwc dennwc commented Aug 23, 2025

Currently, using DSN with a relative path (e.g. file://./data/myapp) will cause Dolt to create a directory with duplicated path elements (./data/myapp/data/myapp in this case).

This bug is caused by Open making a sub-FS that is rooted in the data directory and then LoadMultiEnvFromDir will use the same relative path again to create a directory for the DB.

coffeegoddd added a commit to coffeegoddd/driver that referenced this pull request Jan 15, 2026
Complete audit comparing dolthub/driver implementation against main
dolthub/dolt repository as of Jan 2026.

Key findings:
- Driver is healthy and up-to-date with upstream
- No breaking API changes identified
- Dependency is 4 months behind latest Dolt (Sep 2025 vs Jan 2026)
- All Dolt SQL features fully accessible through driver
- Recommendations for dependency bump and PR dolthub#36 merge

Task: dr-brz

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@coffeegoddd
Copy link
Contributor

superseded by #181

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.

2 participants