英文:
how to fix path problem with grpc, go and protoc
问题
有没有修复运行protoc命令时超出go路径的方法。就像我必须为每个新项目导出路径一样...
$ export PATH="$PATH:$(go env GOPATH)/bin"
英文:
is there any fix fro running protoc command for go outside go path. Like I have to export path for every new project...
$ export PATH="$PATH:$(go env GOPATH)/bin"
答案1
得分: 0
只需要将这段代码添加到.zshrc或.bashrc文件中即可。
英文:
just needed to add this to the .zshrc or .bashrc file
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论