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

Respect $HOME for config location #26

Merged
merged 1 commit into from
Sep 4, 2018

Conversation

euank
Copy link
Contributor

@euank euank commented Sep 3, 2018

As discussed in golang/go#26463, Go's
'user.Current().HomeDir' does not do the right thing.
The 'HOME' environment variable is meant to take precedent over
whatever's in /etc/passwd.

This updates the config directory initialization code to use the correct
home directory.

As discussed in golang/go#26463, Go's
'user.Current().HomeDir' does not do the right thing.
The 'HOME' environment variable is meant to take precedent over
whatever's in /etc/passwd.

This updates the config directory initialization code to use the correct
home directory.
@gsamokovarov
Copy link
Owner

@euank interesting find, thanks for the fix!

@gsamokovarov gsamokovarov merged commit 061b308 into gsamokovarov:master Sep 4, 2018
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