Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

path/filepath: EvalSymlinks gives error for Windows's symbolic links with \\?\ prefix #18924

Closed
grv87 opened this issue Feb 3, 2017 · 2 comments
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.

Comments

@grv87
Copy link

grv87 commented Feb 3, 2017

For Windows's symbolic links with \\?\ prefix filepath.EvalSymlinks gives error:
GetFileAttributesEx \?: The filename, directory name, or volume label syntax is incorrect.

Working example:
https://gist.github.com/grv87/6be3c9d7e1c795636a65283c5187d724

go version go1.7.5 windows/amd64

go env:

set GOARCH=amd64
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Basil\gocode
set GORACE=
set GOROOT=C:\root\Go
set GOTOOLDIR=C:\root\Go\pkg\tool\windows_amd64
set CC=gcc
set GOGCCFLAGS=-m64 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Basil\AppData\Local\Temp\go-build732003834=/tmp/go-build
set CXX=g++
set CGO_ENABLED=1

This error causes issue hashicorp/packer#4323.

@bradfitz
Copy link
Contributor

bradfitz commented Feb 3, 2017

Please try Go 1.8. A lot of work happened on Windows UNC paths during the Go 1.8 dev cycle.

Go 1.7 is no longer maintained except for security fixes.

@bradfitz bradfitz changed the title filepath.EvalSymlinks gives error for Windows's symbolic links with \\?\ prefix path/filepath: EvalSymlinks gives error for Windows's symbolic links with \\?\ prefix Feb 3, 2017
@bradfitz bradfitz added the WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided. label Feb 3, 2017
@grv87
Copy link
Author

grv87 commented Feb 3, 2017

No error in go1.8rc3. Thank you!

@grv87 grv87 closed this as completed Feb 3, 2017
@golang golang locked and limited conversation to collaborators Feb 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge WaitingForInfo Issue is not actionable because of missing required information, which needs to be provided.
Projects
None yet
Development

No branches or pull requests

3 participants