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

cmd/go: x/crypto: already exists and is not an empty directory. package golang.org/x/crypto: exit status 128 #31453

Open
MostHated opened this Issue Apr 13, 2019 · 3 comments

Comments

Projects
None yet
4 participants
@MostHated
Copy link

MostHated commented Apr 13, 2019

What version of Go are you using (go version)?

$ go version go1.12.4 windows/amd64

Does this issue reproduce with the latest release?

Yes, it does

What operating system and processor architecture are you using (go env)?

go env Output
$ go env
set GOARCH=amd64
set GOBIN=
set GOCACHE=C:\Users\Me\AppData\Local\go-build
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=U:\_sync\_files\dev\go
set GOPROXY=
set GORACE=
set GOROOT=U:\_sync\data\sdks\go
set GOTMPDIR=
set GOTOOLDIR=U:\_sync\data\sdks\go\pkg\tool\windows_amd64
set GCCGO=gccgo
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2
set PKG_CONFIG=pkg-config
set GOGCCFLAGS=-m64 -mthreads -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=C:\Users\Me\AppData\Local\Temp\go-build871387110=/tmp/go-build -gno-record-gcc-switches

What did you do?

I entered go get -u golang.org/x/crypto

What did you expect to see?

I expected to see that it downloaded the crypto package in order for me to use bcrypt. The directory in which it is saying exists, does not exist and I am not sure why it is showing a flat path with no backslashes in the log.

What did you see instead?

# cd .; git clone https://go.googlesource.com/crypto U:\_sync\_files\dev\go\src\golang.org\x\crypto
fatal: destination path 'U:_sync_filesdevgosrcgolang.orgxcrypto' already exists and is not an empty directory.
package golang.org/x/crypto: exit status 128

@gopherbot gopherbot added this to the Unreleased milestone Apr 13, 2019

@MostHated MostHated changed the title x/crypto already exists and is not an empty directory. package golang.org/x/crypto: exit status 128 x/crypto: already exists and is not an empty directory. package golang.org/x/crypto: exit status 128 Apr 13, 2019

@MostHated

This comment has been minimized.

Copy link
Author

MostHated commented Apr 13, 2019

An update to this. It seems that anytime I try to go get, it downloads a file but ends up being named like this "U_sync_filesdevgosrcgolang.orgxcrypto" with a messed up path and backslashes. I found the following in my \bin for some reason.

@FiloSottile FiloSottile changed the title x/crypto: already exists and is not an empty directory. package golang.org/x/crypto: exit status 128 cmd/go: x/crypto: already exists and is not an empty directory. package golang.org/x/crypto: exit status 128 Apr 15, 2019

@bcmills

This comment has been minimized.

Copy link
Member

bcmills commented Apr 19, 2019

I wonder whether the leading underscore in the directory name is somehow causing a problem.

CC @alexbrainman for Windows expertise.

@alexbrainman

This comment has been minimized.

Copy link
Member

alexbrainman commented Apr 20, 2019

I am away from my windows computer for a week. I will try to reproduce this when I am back.

Alex

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.