fix(dolt): enable server mode for Gas Town integration (bd-nnjik)
- Skip Bootstrap when ServerMode is true (bootstrap is for embedded cold-start) - Fix doltExists() to follow symlinks using os.Stat - Pass database name from metadata.json to DoltStore config Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
committed by
Steve Yegge
parent
a9c8c952f6
commit
db0c6fbd3f
@@ -101,9 +101,15 @@ func doltExists(doltPath string) bool {
|
||||
}
|
||||
|
||||
for _, entry := range entries {
|
||||
if entry.IsDir() {
|
||||
doltDir := filepath.Join(doltPath, entry.Name(), ".dolt")
|
||||
if info, err := os.Stat(doltDir); err == nil && info.IsDir() {
|
||||
// Use os.Stat to follow symlinks - entry.IsDir() returns false for symlinks
|
||||
fullPath := filepath.Join(doltPath, entry.Name())
|
||||
info, err := os.Stat(fullPath)
|
||||
if err != nil {
|
||||
continue
|
||||
}
|
||||
if info.IsDir() {
|
||||
doltDir := filepath.Join(fullPath, ".dolt")
|
||||
if doltInfo, err := os.Stat(doltDir); err == nil && doltInfo.IsDir() {
|
||||
return true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user