Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: use platformdirs replace pyxdg for cache path #169

Merged
merged 6 commits into from
Jan 3, 2024
Merged

Conversation

syu-w
Copy link
Contributor

@syu-w syu-w commented Jan 2, 2024

Solve a race condition issue when creating dir under pyxdg.

Notice that cache_dir is now return Path not str.

Fixes: #167

Solve a race condition issue when creating dir under pyxdg.
@syu-w syu-w changed the title test: testing cache dir creating race condition fix: use platformdirs replace pyxdg for cache path Jan 2, 2024
Copy link

codecov bot commented Jan 2, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (701a86e) 99.19% compared to head (0deac2c) 99.20%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #169   +/-   ##
=======================================
  Coverage   99.19%   99.20%           
=======================================
  Files          26       26           
  Lines        1123     1130    +7     
  Branches      193      194    +1     
=======================================
+ Hits         1114     1121    +7     
  Misses          6        6           
  Partials        3        3           

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

@syu-w syu-w marked this pull request as ready for review January 2, 2024 20:48
@syu-w syu-w requested review from lengau and mr-cal January 3, 2024 17:43
pyproject.toml Outdated Show resolved Hide resolved
@syu-w syu-w merged commit 6e66bbe into main Jan 3, 2024
8 checks passed
@syu-w syu-w deleted the CRAFT-2365-xdg branch January 3, 2024 19:55
lengau pushed a commit that referenced this pull request Jul 16, 2024
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
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.

Cache directories that already exist get an error
3 participants