proto_path passed empty directory name. (Use “.“ for current directory.)
windows下报错:–proto_path passed empty directory name. (Use “.” for current directory.)
在按proto文件生成go文件时报错:–proto_path passed empty directory name. (Use “.” for current directory.)
原因:路径问题
在windows下需要填写绝对路径 即可生成
将相对路径改为绝对路径即可
例:
PS D:\Go_WorkSpace\server\proto> protoc -I=. --go_out=source_relative:gen/go trip.proto
--proto_path passed empty directory name. (Use "." for current directory.)
上述报错方式的相对路径在linux上可用
改为:
PS D:\Go_WorkSpace\server\proto> protoc -I=D:\Go_WorkSpace\server\proto --go_out=paths=source_relative:gen/go trip.proto
即可生成服务接口所需要的go文件
proto_path passed empty directory name. (Use “.“ for current directory.)相关推荐
- Kylin下构建Cube第一步出错:shell-init: error retrieving current directory
问题背景: 生产环境部署的Kylin-2.1,官方发布的最新安装包并不支持更改hbase存储的namespace,修改源码后重新打包部署过程中,build cube第一步出错 大概错误信息是: OS ...
- The current directory must be set to the ITT directory解决办法
0 前言 这个问题似乎写的人很少,今天解决了这个问题,就当做帮助后来者 1, 问题描述 安装一个大气模型am时进行 make install 遇到如下问题: The current directory ...
- shell 报错 shell-init: error retrieving current directory: getcwd: cannot access parent directories
[root@web-server php]# /etc/init.d/httpd restart shell-init: error retrieving current directory: get ...
- Go报错Finished running tool: 路径,current directory outside main module .... dependencies 的解决方法
本篇文章主要讲解go项目下,output报错:Finished running tool: C:\Program Files\Go\bin\go.exe build -o C:\Users\admin ...
- IDEA中Mark Directory as以及package和directory之间的转化
今天将Eclipse中的文件直接复制粘贴到了IDEA的工程下,发现原有的directory变为了package,且只能在src下新建package不可以新建directory.我们先介绍directo ...
- LD_LIBRARY_PATH should not contain the current directory
执行一次export LD_LIBRARY_PATH=a directory 转载于:https://www.cnblogs.com/tina-ma/p/4390500.html
- [rosbuild] rospack found package XXX at , but the current directory is /home/fb/XXX/YYY/ZZZ/
[rosbuild] rospack found package 引言 引言 类似这种报错: [rosbuild] rospack found package "XXX" at & ...
- composer 2.0 报错:No composer.json present in the current directory, this may be the cause of the foll
最近将composer升级到2.0,下载包的时候就报错了. 去 packagist 网站能搜到这个包 https://packagist.org/?query=captcha 那应该是源的问题吧,因为 ...
- active directory 证书服务器,安装“Active Directory证书服务”角色
目前,大量计算机网络都存在被未经授权访问的隐患.为了保护用户的网络及网络传输信息的安全,可以使用证书服务.在许多产品中, 为了提高通信的安全,都需要"证书"服务的支持.例如,Exc ...
- server2008 active directory用户和计算机,Active Directory用户和计算机
Active Directory用户和计算机是管理域用户的重要组成 在Active Directory用户和计算机目录里有: Builtin -- 域的默认组 Computers --加入域的计算机 ...
最新文章
- 小程序云开发常用语句宝库
- linux安装无线电软件,基于Linux的软件无线电系统软件平台的研究与实现
- Python高阶函数和函数嵌套
- oracle vm virtualbox 无法安装mac,【总结】在VirtualBox上面安装Mac的注意事项
- dotNET Core 3.X 使用 Web API
- frexp 中文_带有Python示例的math.frexp()方法
- SQL SERVER全局变量
- 【FastJson】FastJson一个Bug java.util.LinkedHashMap cannot be cast to com.alibaba.fastjson.Jsonobject
- Python+pandas时间序列对象常用操作
- Zookeeper 3.6.0启动时 8080端口被占用
- 支持MySql的数据库自动分表工具DBShardTools发布
- c++中正则表达式(regex)
- 有人一起用沙雕情侣头像吗?
- java中文繁体简体转换
- 微信小程序怎么做淘宝客优惠券商城手把手教你完成从申请到上线
- 要运行python程序要安装什么_求你要我(2)
- NuGet是什么?为什么.NET项目中会有NuGet?如何使用NuGet程序包?
- 键盘输入一个高精度的正整数N,去掉其中任意S个数字后剩下的数字按原左右次序将组成一个新的正整数。编程对给定的N和S,寻找一种方案使得剩下的数字组成的新数最小。(C++)(贪心法)
- android自动照相机2.0,Camera2.0下载
- C++友元(友元函数)