straywarrior opened a new issue #969: 从release的源代码编译时无法获取BRPC_VERSION
URL: https://github.com/apache/incubator-brpc/issues/969
 
 
   **Describe the bug (描述bug)**
   编译时git操作报错
   `fatal: Not a git repository (or any parent up to mount point /)`
   可以继续编译,但会有大量上述错误信息
   
   **To Reproduce (复现方法)**
   下载release的代码包,例如 
`https://github.com/apache/incubator-brpc/archive/0.9.6.tar.gz`,执行`config_brpc.sh;
 make`
   
   **Expected behavior (期望行为)**
   
   
   **Versions (各种版本)**
   OS: CentOS 6
   Compiler: gcc 4.9.2
   brpc: 0.9.6
   protobuf: 3.5.2
   
   **Additional context/screenshots (更多上下文/截图)**
   错误来自于Makefile中的git命令(已省略其它不相关内容):
   ```
   CPPFLAGS+=-DBRPC_REVISION=\"$(shell git rev-parse --short HEAD)\"
   ```
   使用release的代码包时,没有git目录导致报错

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to