Skip to content

fix(config): read POSIX fallback on Windows - #741

Open
ousamabenyounes wants to merge 1 commit into
JuliusBrussee:mainfrom
ousamabenyounes:fix/issue-723-windows-posix-config
Open

fix(config): read POSIX fallback on Windows#741
ousamabenyounes wants to merge 1 commit into
JuliusBrussee:mainfrom
ousamabenyounes:fix/issue-723-windows-posix-config

Conversation

@ousamabenyounes

Copy link
Copy Markdown
Contributor

Fixes #723

Summary

  • Add a Windows-only fallback from %APPDATA%\caveman\config.json to ~/.config/caveman/config.json when XDG_CONFIG_HOME is unset.

  • Cover the silent fallback case with a simulated win32 config-resolution regression test.

Test verification (RED / GREEN)

RED before production fix:

node tests/test_repo_local_config.js
'full' !== 'lite'

GREEN after fix:

node tests/test_repo_local_config.js
13 passed, 0 failed

node tests/test_symlink_flag.js
12 passed, 0 failed

npm test
# tests 112
# pass 112
# fail 0

@ousamabenyounes
ousamabenyounes force-pushed the fix/issue-723-windows-posix-config branch from a8c00d7 to 0500881 Compare August 3, 2026 20:43
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.

Windows: ~/.config/caveman/config.json silently ignored — real path is %APPDATA%\caveman\config.json

1 participant