You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cd $GOPATH
$ mkdir -p mellium.im/communiqué
$ cd mellium.im/communiqué
$ # This works
$ go mod init
go: creating new go.mod: module mellium.im/communiqué
$ cat go.mod
module mellium.im/communiqué
go 1.13
$ rm go.mod
$ # This does not work
$ go mod init mellium.im/communiqué
go: malformed import path "mellium.im/communiqué": invalid char 'é'
$ go1.12.9 mod init mellium.im/communiqué
go: creating new go.mod: module mellium.im/communiqué
What did you expect to see?
Running go mod init and go mod init mellium.im/communiqué should both produce a valid go.mod file with some form of Unicode normalization applied.
What did you see instead?
They both behave the same in Go 1.12.9, but do not behave the same in Go 1.13.
The text was updated successfully, but these errors were encountered:
SamWhited
changed the title
go.mod: go mod init cannot create module with some unicode charcters
go.mod: regression: go mod init cannot create module with some unicode charcters if package path is provided on the command line
Aug 17, 2019
The Go module proxy protocol does not provide an encoding for Unicode characters, and the Go language spec does not define a normalization algorithm for import paths. As a result, a module path containing Unicode characters cannot be fetched or cached: it can only exist as a top-level module, in which case the module path doesn't make much difference anyway.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
No (1.12.9 works as expected)
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
What did you expect to see?
Running
go mod init
andgo mod init mellium.im/communiqué
should both produce a validgo.mod
file with some form of Unicode normalization applied.What did you see instead?
They both behave the same in Go 1.12.9, but do not behave the same in Go 1.13.
The text was updated successfully, but these errors were encountered: