go - 如何在 dep golang 中使用分叉包?
问题描述
如何使用 dep 轻松使用自己的分叉包?
当我的更改被接受时,我希望能够再次使用上游。
解决方案
虽然dep
不再是这样做的首选方式,(从 go1.11 开始首选 go modules)
有了约束,这很容易,它仍然会在代码中的任何地方被引用并通过github.com/upstream/repo
.
[[constraint]]
name = "github.com/upstream/repo"
branch = "forked-branch-name"
source = "github.com/lexton/repo"
推荐阅读
- opengl - 来自 World Machine 的纹理在 OpenGL 中无法正确渲染
- flutter - /bin/sh: /packages/flutter_tools/bin/xcode_backend.sh: github 操作中没有这样的文件或目录
- python - 如何从数组列表中提取特定条目?
- firebase - Flutter Firebase消息迁移遇到问题]:
- php - 添加发票项目适用于条纹 SDK,但不适用于 Laravel 收银员
- python - 带有文件 I/O 的 Python If/Else 逻辑
- amazon-web-services - 使用 terraform 和 localstack 创建 aws_dynamodb_table 需要很长时间
- android - 媒体查询不适用于移动设备 - 电话
- php - 如何在 PHP 中将特殊字符保存到 Mysql 数据库
- laravel - 如何获取单亲子类的商品总量