Skip to content

[exocrate] use XDG cache dir instead of home dir#3459

Open
Sagartaunk wants to merge 1 commit into
google:mainfrom
Sagartaunk:main
Open

[exocrate] use XDG cache dir instead of home dir#3459
Sagartaunk wants to merge 1 commit into
google:mainfrom
Sagartaunk:main

Conversation

@Sagartaunk

Copy link
Copy Markdown
Contributor

Use XDG cache dir instead of home dir on UserGlobal installs, to prevent polluting user home directories.

Fixes: #3420

@Sagartaunk

Copy link
Copy Markdown
Contributor Author

Also, instead of adding Directories crate, I have just used dirs::cache_dir(). Do tell me if I should change it to use the Directories crate instead.

@codecov-commenter

codecov-commenter commented Jun 12, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.85%. Comparing base (c518ab2) to head (be6e038).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3459   +/-   ##
=======================================
  Coverage   91.85%   91.85%           
=======================================
  Files          20       20           
  Lines        6093     6093           
=======================================
  Hits         5597     5597           
  Misses        496      496           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Sagartaunk Sagartaunk force-pushed the main branch 2 times, most recently from 904f177 to 536ac72 Compare June 12, 2026 10:59

@joshlf joshlf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!! One small comment.

cc @mdittmer who may also have feedback

Comment thread exocrate/src/lib.rs
Use XDG cache dir instead of home dir on `UserGlobal` installs,
to prevent polluting user home directories.

Fixes: google#3420
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.

[anneal][v2][exocrate] Stop polluting user home directories, adopt standard base directory conventions

3 participants