We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
go version
$ go version go version go1.12.6 linux/amd64
Yes (and tip)
go env
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/leitzler/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/leitzler/go" GOPROXY="" GORACE="" GOROOT="/usr/local/go" GOTMPDIR="" GOTOOLDIR="/usr/local/go/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="/tmp/tmp.OCzVOwKWBd/go.mod" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build567694577=/tmp/go-build -gno-record-gcc-switches"
Tried to fetch a third party dependency that contained a folder/file with unicode chars.
To reproduce I've created a repo that contains a folder & file with a unicode char, in package: github.com/modsdemo/unicode/🦡
github.com/modsdemo/unicode/🦡
It can be used in a Go program, but can't be fetched using go get since unzip will fail to extract it:
go get
unzip
$ cd $(mktemp -d) && go mod init x $ go get github.com/modsdemo/unicode go: finding github.com/modsdemo/unicode latest go: downloading github.com/modsdemo/unicode v0.0.0-20190614083133-991638b734de go: extracting github.com/modsdemo/unicode v0.0.0-20190614083133-991638b734de -> unzip /home/leitzler/go/pkg/mod/cache/download/github.com/modsdemo/unicode/@v/v0.0.0-20190614083133-991638b734de.zip: malformed file path "\U0001f9a1/\U0001f9a1.go": invalid char '\U0001f9a1' package github.com/modsdemo/unicode: unknown import path "github.com/modsdemo/unicode": unzip /home/leitzler/go/pkg/mod/cache/download/github.com/modsdemo/unicode/@v/v0.0.0-20190614083133-991638b734de.zip: malformed file path "\U0001f9a1/\U0001f9a1.go": invalid char '\U0001f9a1'
The dependency fetched
Unzip failing to extract the module zip
The text was updated successfully, but these errors were encountered:
See
go/src/cmd/go/internal/module/module.go
Line 378 in 55d31e1
Sorry, something went wrong.
Closing as duplicate of #29101, please let me know if you think that's not correct.
No branches or pull requests
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes (and tip)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Tried to fetch a third party dependency that contained a folder/file with unicode chars.
To reproduce I've created a repo that contains a folder & file with a unicode char, in package:
github.com/modsdemo/unicode/🦡
It can be used in a Go program, but can't be fetched using
go get
sinceunzip
will fail to extract it:What did you expect to see?
The dependency fetched
What did you see instead?
Unzip failing to extract the module zip
The text was updated successfully, but these errors were encountered: