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

Fallback to getpwuid when HOME env var not set #547

Merged
merged 1 commit into from
Sep 21, 2021

Conversation

alanhamlett
Copy link
Member

Let's see if this can detect the current user's home folder when $HOME env var is unset. Should fix wakatime/vscode-wakatime#238.

@alanhamlett alanhamlett changed the title Enable building with CGO on POSIX platforms except Mac Fallback to getpwuid when HOME env var not set Sep 17, 2021
@alanhamlett alanhamlett force-pushed the bugfix/enable-cgo-linux branch 5 times, most recently from f64941e to 36f8511 Compare September 21, 2021 00:53
Copy link
Member

@gandarez gandarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some lines of code might be changed to be more "Go style".

Makefile Outdated Show resolved Hide resolved
cmd/legacy/logfile/logfile.go Outdated Show resolved Hide resolved
pkg/api/transport_windows.go Show resolved Hide resolved
pkg/pwd/pwd_cgo.go Outdated Show resolved Hide resolved
pkg/pwd/pwd_cgo.go Outdated Show resolved Hide resolved
pkg/pwd/pwd_cgo.go Outdated Show resolved Hide resolved
pkg/pwd/pwd_test.go Outdated Show resolved Hide resolved
pkg/config/config.go Show resolved Hide resolved
pkg/config/config.go Outdated Show resolved Hide resolved
@gandarez gandarez added the bug Something isn't working label Sep 21, 2021
pkg/pwd/pwd_cgo.go Outdated Show resolved Hide resolved
Copy link
Member

@gandarez gandarez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants