go-micro run createfile The filename, directory name, or volume label syntax is incorrect?

go-micro的搭建
go-micro.exe version v1.1.4

  1. go install github.com/go-micro/cli/cmd/go-micro@latest
  2. go-micro new service helloworld
  3. make init proto update tidy
  4. go-micro run

    结果:
    PS D:\pri\go-micro> go-micro run
    CreateFile C:\Users\rain\AppData\Local\Temp\micro\uploads\D:\pri\go-micro: The filename, directory name, or volume label syntax is incorrect.

看错误应该是路径没有指向正确

这样执行
go-micro run ./helloworld
也是同样的错误

阅读 2.8k
1 个回答

从你发的结果来看,执行路径好像有问题。

go-micro new service helloworld

这个命令会创建一个helloworld项目文件夹

你需要cd helloworld,然后进行下一步操作,包括go-micro run 也是在helloworld文件夹下执行

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题