简体   繁体   English

如何使用非git存储库作为git项目的依赖项?

[英]How to use a non-git repository as a dependency for a git project?

I have a project on GitHub that uses ncurses. 我在GitHub上有一个使用ncurses的项目。 How would I add ncurses as a dependency, seeing as the ncurses source code doesn't have an official repository on GitHub? 我如何将ncurses添加为依赖项,因为ncurses源代码在GitHub上没有官方存储库? The source code is in the form of gzip tar of course. 源代码当然是gzip tar的形式。

If you really needed source dependencies to ncurses, you can find mirrors on GitHub. 如果你确实需要ncurses的源依赖,你可以在GitHub上找到镜像。
For instance, https://github.com/mirror/ncurses . 例如, https://github.com/mirror/ncurses

The best practice would be to declare a binary dependency, or, as suggesting, simply checking if ncurses is installed: 最佳实践是声明二进制依赖项,或者,建议只是检查是否安装了ncurses:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM