mac系统下无法安装protoc-gen-go
来源:1-1 Go语言之vscode配置
慕哥9561112
2021-11-25 23:05:10
我的protobuf的版本是3.19 按照grpcgateway的代码执行工install后就没有对应的二进制文件在GOPATH下产生
相关截图:
bin ls
dlv go-outline goimports gopkgs gopls impl
dlv-dap gocode-gomod gomodifytags goplay gotests staticcheck
相关代码:
go install github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-grpc-gateway@latest github.com/grpc-ecosystem/grpc-gateway/v2/protoc-gen-openapiv2@latest google.golang.org/protobuf/cmd/protoc-gen-go@latest google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
这个是安装的代码
尝试过的解决方式:
我自己尝试重新下载goinstall对应的插件。但是不起作用
1回答
的确这条命令不工作了,我看了下官方页面也没有更新。不过分开来执行这些go install就可以了。
相似问题