[PR #8236] fix: Respect platform directory conventions #12670

Open
opened 2026-02-16 18:17:34 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/8236

State: open
Merged: No


fixes #8235

xdg-basedir respects only the linux xdg standard. This commit replaces it with env-paths which respects the conventions on mac os and windows

What does this PR do?

Replaces "xdg-basedir" with "env-paths" which respects platform specific directory conventions.

How did you verify your code works?

Compiled and ran on windows and verified connecting to a provider stored the "auth.json" in the correct directory.

**Original Pull Request:** https://github.com/anomalyco/opencode/pull/8236 **State:** open **Merged:** No --- fixes #8235 xdg-basedir respects only the linux xdg standard. This commit replaces it with env-paths which respects the conventions on mac os and windows ### What does this PR do? Replaces "xdg-basedir" with "env-paths" which respects platform specific directory conventions. ### How did you verify your code works? Compiled and ran on windows and verified connecting to a provider stored the "auth.json" in the correct directory.
yindo added the pull-request label 2026-02-16 18:17:34 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#12670