【问题标题】:Boost github release does not contain submodulesBoost github 版本不包含子模块
【发布时间】:2016-12-30 23:06:19
【问题描述】:

我试图从https://github.com/boostorg/boost/releases 下载 boost 版本,在下载该版本时,我看到它使用的子模块尚未初始化。这是故意的吗?

由于 boost 的所有相关代码都已被 beeb 模块化为 git 子模块,并且它们每个都维护在自己的 git repo 中。那么我怎样才能从 github 版本中获取子模块(或将子模块初始化为下载的代码)? Apparently the github git archive API does not support submodules for security reasons.

【问题讨论】:

  • 替代解决方案 - 从 boost.org 获取存档,如果您想从 github 获取源代码,请使用 git clone --recursive
  • @Praetorian 我知道 boost.org 发布链接,我只是好奇为什么 github 页面没有包含子模块的所有代码的版本:(
  • 那么您期望这个问题的答案是什么?
  • @eis 我想问的问题是应该如何从 github 版本的 boost.js 中获取子模块。我不知道我是不是做错了什么
  • @Curious 但你知道吗?您自己链接到线程解释 github 版本不支持它们,并且 Praetorian 评论了替代解决方案。那么还有什么要回答的吗?

标签: c++ git github boost


【解决方案1】:

就像你评论的那样,github 版本不支持子模块。

来源:

就像@Praetorian 提到的那样,替代解决方案是获取存档from boost,或者只是使用来自github 的子模块克隆源。您可以clone off a tag or a branch to get specific versiongit clone --branch my_abc http://git.abc.net/git/abc.git,并使用--recursive 获取子模块。

【讨论】:

  • 你会知道为什么 boost 不希望他们的版本包含所有子模块吗?或者这不是他们完全想做的事情?
  • @Curious 为什么你说 boost 不想要?这是 github 版本的限制,而不是 boost。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2012-05-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-11-17
  • 2020-04-02
相关资源
最近更新 更多