The usage of the os/user package doesn't seem to work well with Go cross-compilation.
I had strange CI errors on Windows when working on integration tests which took me time to root-cause. Basically getting the user home directory failed, as a workaround for now I've explicitly set DCOS_DIR in the windows integration tests CI jobs.
For more context : https://github.com/mitchellh/go-homedir
A simple fix could be to upgrade to Go 1.11 too (https://tip.golang.org/doc/go1.11#os/user):