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

affected/package: #59290

Closed
CodeNightOwl opened this issue Mar 28, 2023 · 1 comment
Closed

affected/package: #59290

CodeNightOwl opened this issue Mar 28, 2023 · 1 comment

Comments

@CodeNightOwl
Copy link

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

go1.15.15 (This version is normal, and errors are reported in subsequent versions)

Does this issue reproduce with the latest release?

yes

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

go env Output
$ go env
 GO111MODULE=on
set GOARCH=amd64
![QQ截图20230328212449](https://user-images.githubusercontent.com/39363346/228251275-06df4ecd-bedc-4919-90b1-84efa6694fbc.png)

set GOBIN=
set GOCACHE=C:\Users\Administrator\AppData\Local\go-build
set GOENV=C:\Users\Administrator\AppData\Roaming\go\env
set GOEXE=.exe
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=C:\Users\Administrator\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH=C:\Users\Administrator\go
set GOPRIVATE=
set GOPROXY=https://goproxy.cn,direct
set GOROOT=C:\Program Files\Go
set GCCGO=gccgo
set AR=ar
set CC=gcc
set CXX=g++
set CGO_ENABLED=1
set GOMOD=C:\Users\Administrator\go\src\gitee.com\yzzd2\pi\go.mod
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\ADMINI~1\AppData\Local\Temp\go-build278086842=/tmp/go-build -gno-record-gcc-switches

What did you do?

I used a Chinese package name (folder name)
report errors: routers\router.go:46:2: malformed import path "gitee.com/xxx/xxx/controllers/用户管理/消息管理": invalid char '用'

What did you expect to see?

I hope the new version can support Chinese package names. After all, Go1.15.15 has been supported before, and has been used in multiple projects.

What did you see instead?

In versions after go1.15.15, Chinese cannot be used as the package name (folder name)

@ianlancetaylor
Copy link
Member

Thanks. Closing as a duplicate of #45549.

@ianlancetaylor ianlancetaylor closed this as not planned Won't fix, can't repro, duplicate, stale Mar 28, 2023
@golang golang locked and limited conversation to collaborators Mar 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants