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
The module zip format is intended to be portable across filesystems. The pipe character is reserved on Windows, so it cannot appear within a module either. (We may eventually relax that requirement — for example, by escaping disallowed characters — but for now it is what it is.)
It is usually possible to avoid the problem by placing another (possibly-empty) go.mod file within the directory containing the disallowed file, thus excluding it from the parent module (and from that module's zip file).
As far as I can tell, this is working as intended.
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.11 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
|
chars in filenames: https://github.com/moul/test-go-mod-malformed-pathgo mod
, you cango build
go mod
:What did you expect to see?
go mod vendor
should successWhat did you see instead?
go mod vendor
failing with the above messageThe text was updated successfully, but these errors were encountered: