goup
goup copied to clipboard
does it support windows?
I install go version on windows, it report a error:
level=fatal msg="symlink C:\\Users\\username\\.go\\go1.16 C:\\Users\\username\\.go\\current: A required privilege is not held by the client."
when i execute goup
command, got:
level=fatal msg="readlink C:\\Users\\username\\.go\\current: The file or directory is not a reparse point."
does anyone knows how to solve this problem?
Hi,
I solved this problem putting windows in developer mode.
try open cmd window by administrator,it seems like can install go,but not support switch version on Windows
I fix it with SysinternalsSuite junction.exe
err := os.Symlink(version, current)
if err != nil {
if runtime.GOOS == "windows" {
var junction = os.Getenv("GOUP_JUNCTION")
if junction == "" {
junction = "d:\\tools\\SysinternalsSuite\\junction.exe"
}
cmd := exec.Command(junction, current, version)
err := cmd.Run()
if err == nil {
return nil
}
fmt.Println(err)
}
}
return err
fix it with mklink.exe also.
It's a shame windows isn't supported