Closed sinbad closed 9 years ago
HOME isn't necessarily defined on Windows machines, per AWS docs %USERPROFILE% is the root used on that platform. For better compatibility don't manually use environment at all & use os/user package instead.
os/user requires cgo, which is why we don't do that. If you switch it to https://github.com/mitchellh/go-homedir then I'll merge.
os/user
Thanks, re-submitted as suggested.
HOME isn't necessarily defined on Windows machines, per AWS docs %USERPROFILE% is the root used on that platform. For better compatibility don't manually use environment at all & use os/user package instead.