Skip to content

chore: replace userdir with stdlib os.UserConfigDir#572

Open
yin1999 wants to merge 1 commit into
tiny-craft:mainfrom
yin1999:replace-user-config-dir
Open

chore: replace userdir with stdlib os.UserConfigDir#572
yin1999 wants to merge 1 commit into
tiny-craft:mainfrom
yin1999:replace-user-config-dir

Conversation

@yin1999

@yin1999 yin1999 commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

The github.com/vrischmann/userdir package has been archived. We can drop this dependency and leverage the standard library's os package instead.

@tiny-craft

Copy link
Copy Markdown
Owner

Thanks for the PR. Have you tested this change on all supported platforms, especially macOS, Windows, Linux, and the web build?

One concern is backward compatibility with the existing config path. For example, on macOS the old userdir.GetConfigHome() path appears to be ~/Library/Preferences, while os.UserConfigDir() uses ~/Library/Application Support. This may cause existing users' connections and preferences to no longer be found after upgrading.

Could you confirm whether the old paths are still supported, or add a migration/fallback mechanism for existing config files?

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.

2 participants