首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >从现有供应商包导出依赖项

从现有供应商包导出依赖项
EN

Stack Overflow用户
提问于 2022-06-14 03:07:09
回答 1查看 120关注 0票数 -1

我是新的金刚和滑翔依赖管理工具。我正试图在创建我的公司项目中运行glide install。我遇到了一个关于围棋库的错误.

代码语言:javascript
复制
[ERROR] Update failed for github.com/go-xorm/xorm: Unable to get repository: Cloning into '/Users/xxx/.glide/cache/src/https-github.com-go-xorm-xorm'...
remote: Repository `go-xorm/xorm' is disabled.
remote: Please ask the owner to check their account.
fatal: unable to access 'https://github.com/go-xorm/xorm/': The requested URL returned error: 403
: exit status 128
[ERROR] Failed to checkout packages: Unable to get repository: Cloning into '/Users/xxx/.glide/cache/src/https-github.com-go-xorm-xorm'...
remote: Repository `go-xorm/xorm' is disabled.
remote: Please ask the owner to check their account.
fatal: unable to access 'https://github.com/go-xorm/xorm/': The requested URL returned error: 403
: exit status 128

似乎我无法从github下载它,因为它的所有者使它禁用了克隆。

如何修复此错误,或者是否有任何方法可以直接从本地供应商导出而不从github获取。我确信包已经在我的本地供应商文件夹上了。非常感谢!

EN

回答 1

Stack Overflow用户

发布于 2022-06-14 04:10:05

这是因为XORM从Github (回购仍然可以作为公共存档)转移到吉塔,而不是github.com/go-xorm/xorm,它们现在使用xorm.io/xorm

我建议完全停止使用glide,并将其替换为基于Go模块的工作流;但是,如果必须使用它,则需要从glide.yaml中删除github.com/go-xorm/xorm,添加xorm.io/xorm (您可以使用glide get来这样做),并在代码库中到处修复导入。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/72611111

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档