Skip to content

enhancement: add platform-aware cache paths - #43

Merged
codeforester merged 1 commit into
mainfrom
enhancement/36-20260801-platform-paths
Aug 2, 2026
Merged

enhancement: add platform-aware cache paths#43
codeforester merged 1 commit into
mainfrom
enhancement/36-20260801-platform-paths

Conversation

@codeforester

Copy link
Copy Markdown
Contributor

Summary

  • add a reusable platform-aware default cache-root resolver;
  • honor XDG_CACHE_HOME, macOS Library/Caches, and Windows LOCALAPPDATA;
  • normalize home-relative history paths across POSIX and Windows separators;
  • isolate Windows-related home/cache environment variables in test helpers;
  • document Linux, WSL2, macOS, and Windows cache placement.

This keeps BASE_CLI_CACHE_DIR as the explicit override and leaves consumer-specific
configuration and native Base/basectl support out of scope.

Fixes #36

Validation

  • uv run --no-project --with pytest --with click --with PyYAML python -m pytest
  • ./tests/validate.sh

105 tests passed.

@codeforester
codeforester marked this pull request as ready for review August 2, 2026 01:39
@codeforester
codeforester merged commit ec780f2 into main Aug 2, 2026
11 checks passed
@codeforester
codeforester deleted the enhancement/36-20260801-platform-paths branch August 2, 2026 01:39
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.

Add platform-aware cache paths and home/path normalization

1 participant