fix: пути (db, worktree) и config.yaml резолвятся рядом с .exe, а не от CWD
All checks were successful
CI / test (push) Successful in 1m5s
CI / build-and-package (amd64, linux) (push) Successful in 44s
CI / build-and-package (amd64, windows) (push) Successful in 43s

This commit is contained in:
Hermes
2026-08-16 20:31:08 +05:00
parent 91e91ac3ce
commit 130dc59840
3 changed files with 95 additions and 2 deletions

View File

@@ -55,6 +55,9 @@ func New(configPath, version, updateToken string) (*App, error) {
return nil, fmt.Errorf("%w: %v", ErrConfig, err)
}
// Относительные пути (db, worktree) — рядом с .exe, а не от CWD запуска.
cfg.ResolveExePaths()
// SQLite для задач и трасс
ctx := context.Background()