git-anchor:[已弃用] 锚定您的 git 依赖项的版本

时间:2021-06-01 20:28:02
【文件属性】:
文件名称:git-anchor:[已弃用] 锚定您的 git 依赖项的版本
文件大小:3.78MB
文件格式:ZIP
更新时间:2021-06-01 20:28:02
Go git-anchor git-anchor 锚定 git 依赖项的版本。 给定包含依赖项规范的 deps.json 文件,git-anchor 推断出这些 repos 的正确版本,并生成克隆锚定版本的构建脚本。 问题 给定一个包含许多 git 子树的大存储库,您希望在持续集成服务器上为每个小存储库创建一个构建脚本。 为了实现这一点,每个 repo 的构建脚本都可以 git clone 其依赖项并运行一些测试。 当有人推送到存储库并且构建脚本获取其每个依赖项的最新版本时,可能会出现问题。 依赖代码可能与其所有依赖项的最新版本都不兼容。 例如,如果依赖项在其 API 中引入了重大更改,则这可能会导致错误。 一个可能的解决方案是开发人员需要在脚本中更新 git 哈希。 但是,由于此类手动构建步骤要求容易出错,因此 git-anchor 使用自动解决方案来解决问题。 git-anchor
【文件预览】:
git-anchor-master
----.gitignore(11B)
----Dockerfile(1KB)
----Makefile(3KB)
----LICENSE(11KB)
----Readme.md(5KB)
----tests()
--------ingit.sh(65B)
--------cloned.sh(149B)
--------tests.sh(3KB)
--------nothing.sh(88B)
--------prep.sh(4KB)
--------deps.json(119B)
--------cloned_old.sh(197B)
--------subtreed_old.sh(41B)
--------internal.json(180B)
--------check.sh(51B)
--------justinternal.sh(90B)
--------subtreed.sh(42B)
----demo.gif(3.77MB)
----git-anchor.go(11KB)

网友评论