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

home: wrong home path if root user in linux #3

Closed
zchee opened this issue May 13, 2018 · 0 comments
Closed

home: wrong home path if root user in linux #3

zchee opened this issue May 13, 2018 · 0 comments

Comments

@zchee
Copy link
Owner

zchee commented May 13, 2018

wrong home path if root user in linux.

repro following command:

docker run --rm -it -v $PWD:/go/src/github.com/zchee/go-xdgbasedir golang:1.10.2-stretch go test -v -race ./...

error log:

=== RUN   TestDir
=== RUN   TestDir/default_usrHome
=== RUN   TestDir/set_different_$HOME_env
=== RUN   TestDir/empty_$HOME_env
--- FAIL: TestDir (0.00s)
    --- PASS: TestDir/default_usrHome (0.00s)
    --- PASS: TestDir/set_different_$HOME_env (0.00s)
    --- FAIL: TestDir/empty_$HOME_env (0.00s)
    	home_test.go:57: Dir() = ~, want /root
FAIL

ref:

@zchee zchee added the bug label May 13, 2018
@zchee zchee added this to the v1.0.2 milestone May 13, 2018
@zchee zchee self-assigned this May 13, 2018
@zchee zchee closed this as completed in c4375bf May 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant