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

Avoid "user: Current not implemented" error #1082

Merged
merged 2 commits into from Jan 22, 2016
Merged

Avoid "user: Current not implemented" error #1082

merged 2 commits into from Jan 22, 2016

Conversation

mislav
Copy link
Owner

@mislav mislav commented Jan 22, 2016

Stop using user.Current() since that seems to cause problems for people who are using cross-compiled hub on certain systems.

No idea if this will surface further cgo issues, but it's a start.

Fixes #1058, fixes #781

Sometimes when hub is cross-compiled, `user.Current()` won't work on
certain systems. Use an alternative way of obtaining the user's home
directory.
Detect current username without resorting to cgo
mislav added a commit that referenced this pull request Jan 22, 2016
Avoid "user: Current not implemented" error
@mislav mislav merged commit 7226fc7 into master Jan 22, 2016
@mislav mislav deleted the go-homedir branch January 22, 2016 06:18
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.

Trouble running pull-request command on OS X. I get "user: Current not implemented on linux/386"
1 participant