Skip to content

Commit 057502d

Browse files
leifericfclaude
andcommitted
fix(cli): resolve --db-dir to absolute path before passing to Datomic
Datomic requires absolute paths for storage-dir. The default path was already resolved to absolute, but user-supplied --db-dir values were passed through as-is, causing Datomic to error on relative paths. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 0bed6f9 commit 057502d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/noumenon/util.clj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@
3636
"Resolve the database storage directory from an options map.
3737
Uses :db-dir if present, otherwise defaults to data/datomic/ relative to cwd."
3838
[opts]
39-
(or (:db-dir opts)
40-
(str (.getAbsolutePath (io/file default-db-dir)))))
39+
(str (.getAbsolutePath (io/file (or (:db-dir opts) default-db-dir)))))
4140

4241
(defn validate-repo-path
4342
"Validate that repo-path exists, is a directory, and contains .git.

0 commit comments

Comments
 (0)