goup icon indicating copy to clipboard operation
goup copied to clipboard

does it support windows?

Open popwalker opened this issue 3 years ago • 5 comments

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?

popwalker avatar Sep 01 '21 09:09 popwalker

Hi,

I solved this problem putting windows in developer mode.

alarangeiras avatar Sep 24 '21 09:09 alarangeiras

try open cmd window by administrator,it seems like can install go,but not support switch version on Windows

ydd9090 avatar Nov 22 '21 05:11 ydd9090

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

mei-rune avatar Jan 01 '22 03:01 mei-rune

fix it with mklink.exe also.

mei-rune avatar Jul 27 '22 02:07 mei-rune

It's a shame windows isn't supported

zicheqingluo avatar Jul 31 '23 03:07 zicheqingluo