You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Runtime fixes:
- validation/path.go: case-insensitive boundary checks on Windows
(VS Code lowercases drive letters, EvalSymlinks uppercases)
- memory/discover.go: platform-independent project slugs with
filepath.ToSlash and Windows drive prefix stripping
- recall/parser/path.go: use forward slashes consistently for
session path operations (not platform separator)
- journal/core/generate.go: normalize source links and nav paths
to forward slashes
- site/cmd/feed/run.go: use config.NewlineLF and config.ExtMarkdown
constants; use Println for cross-platform line endings
Test fixes:
- Set USERPROFILE alongside HOME in 50+ test functions across 10
files (os.UserHomeDir reads USERPROFILE on Windows)
- Set APPDATA in recall tests (XDG fallback reads APPDATA on Windows)
- recall/core/format_test.go: replace t.Setenv TZ with setLocalUTC
helper (TZ env var does not affect time.Local on Windows)
- cli_test.go: append .exe suffix on Windows for test binary
- serve_test.go: use os.TempDir, .bat fake binaries, platform PATH
separator
- pad_test.go: skip file permission test on Windows; use
filepath.Separator in path assertions
- crypto_test.go: skip Unix permission check on Windows
- journal/core/generate_test.go: use t.TempDir with filepath.ToSlash
instead of hardcoded Unix paths
Signed-off-by: ersan bilik <ersanbilik@gmail.com>
0 commit comments