1

我有一个托管在 GitHub 上的存储库,我想知道应该将哪些文件推送到它。显然我的源文件已添加到其中,但我不确定如何处理我正在使用的库。

例如,我在我的项目中使用它。它存储/lib/在我的项目目录中。我应该包含/lib/在我的存储库中吗?

4

2 回答 2

1

您应该指导用户让他们下载 3rd 方库的最新版本(或者您可以指定经过测试的 OK 版本),这样您就不会违反其他 3rd 方库的许可(其中一些不会允许您在其他软件中重新分发/捆绑)。

于 2012-10-03T06:47:17.113 回答
1

I would use a dependency management/build tool like Jenkins, npm, ant+ivy, etc... Then include that configuration and instructions. You want to make the barrier to contribution as low as possible. Even asking folks to download and coordinate versions themselves can be off putting. If I have the choice of contributing to two similar projects I will pick the one with a nice build system and dep management over the one that has none. Also include unit-tests =)

Since you appear to be using java, here is an example from a project I help with:

https://github.com/vngx/vngx-jsch

于 2012-10-05T01:21:10.770 回答