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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
开发环境:WSL1 Ubuntu
项目实际存放位置:
F:/go/src/xxx
映射到WSL中的位置:
/mnt/f/go/src/xxx
软链接:
/home/xxx/go
->/mnt/f/go
在
/home/xxx/go/src/xxx/service/xxx
中执行goctl rpc protoc xxx.proto --go_out=./types --go-grpc_out=./types --zrpc_out=.
失败,提示no matched module
。后来发现是因为
pathx.ReadLink
读取出来的路径是/mnt/f/go/src/xxx/service/xxx
,与go list -m读取的不一致,导致无法匹配。我在自己的仓库中暂时进行了修改,让自己能够使用,但是gozero是否应该解决一下这个问题。
commit:https://github.com/moyrne/go-zero/commit/a6f9d9c2ae6dbc22d0e2b1609cb68d5367dd721d
Beta Was this translation helpful? Give feedback.
All reactions