Replace `user.Current()` with `os.Getenv("HOME")`
`os/user.Current()` is not available on Darwin when a binary is cross compiled from another platform. See also: https://github.com/golang/go/issues/6376
Showing
with
1 additions
and
6 deletions
-
Please register or sign in to post a comment