Go应用的vendoringutilityManul.zip

时间:2022-08-06 15:47:50
【文件属性】:
文件名称:Go应用的vendoringutilityManul.zip
文件大小:43KB
文件格式:ZIP
更新时间:2022-08-06 15:47:50
开源项目 Manul 是 Go 应用的 vendoring utility。为什么需要 Manul ?因为其他的 vendor utilities 有以下缺点:有些会对 go 的二进制文件和 GOPATH env 变量进行欺骗包装。你将得到一个非 go-gettable 项目,需要额外的软件来编译和运行;有些将依赖关系的源代码复制到供应商目录中:更新依赖关系需要手动干预,并将大量修改的行直接提交到主仓库;不能通过查看仓库来告诉你的项目使用的依赖关系的版本; 必须在与提交相关联的供应商的附加模糊文件中保留版本。还有各种架构问题:不能更新所有或特定的依赖关系;不能将特定版本的被依赖关系回滚;不能删除未使用的被依赖关系;不能锁定版本的 vendored 依赖。用法-I [...] -为指定的/所有依赖关系安装git子模块;-U [...] - 更新指定的/所有已经被提供的依赖;-R [...] - 删除指定/所有依赖关系的git子模块;-Q [...] - 列出所有使用的依赖关系;-C - 检测并删除所有git子模块。安装Ubuntu/Debian:git clone --branch pkg-debian git://github.com/kovetskiy/manul /tmp/manul cd /tmp/manul ./build.sh dpkg -i *.debArch Linux:从 AIR 安装,或手动构建软件包:git clone --branch pkg-archlinux git://github.com/kovetskiy/manul /tmp/manul cd /tmp/manul makepkg pacman -U *.xzOther distros使用 go get 也可获得:go get github.com/kovetskiy/manul 标签:Manul
【文件预览】:
manul-master
----utils.go(660B)
----tree-examples()
--------orgalorg.txt(794B)
--------traefik.txt(5KB)
--------manul.txt(857B)
--------kubernetes.txt(209KB)
--------docker.txt(40KB)
----handle_install.go(2KB)
----main.go(3KB)
----handle_clean.go(946B)
----.gitmodules(849B)
----handle_tree.go(2KB)
----handle_query.go(913B)
----handle_remove.go(577B)
----.travis.yml(172B)
----LICENSE(1KB)
----submodule.go(5KB)
----handle_update.go(1KB)
----README.md(6KB)
----Makefile(84B)
----tests()
---------Q-without-value-prints-version-of-vendored-dependencies.test.sh(514B)
---------I-supports-commit-ish.test.sh(469B)
--------teardown.sh(0B)
---------I-adds-submodule-of-specified-dependency.test.sh(342B)
---------Q-without-value-lists-all-dependencies-recursively.test.sh(540B)
---------R-removes-specified-dependency.test.sh(882B)
---------R-without-value-removes-all-dependencies.test.sh(608B)
---------C-removes-unused-dependencies.test.sh(573B)
--------run_tests(330B)
---------Q-without-value-lists-all-dependencies.test.sh(266B)
---------Q-without-value-lists-only-third-party-dependencies.test.sh(447B)
---------I-without-value-adds-submodules-for-all-dependencies.test.sh(483B)
--------setup.sh(639B)
---------U-without-value-updates-all-submodules.test.sh(1KB)
---------Q-parse-meta-go-import.test.sh(963B)
---------U-supports-commit-ish.test.sh(1KB)
----imports.go(5KB)
----.gitignore(77B)
----vendor()
--------github.com()
--------.gitignore(139B)

网友评论