dua55014 2014-06-20 08:26
浏览 40

Golang软件包意外删除

I have a golang project which imports some third-party packages. Today, i want to upgrade it but one of the packages's git repo has been removed by author for some reason. I know Python has "pypi" to manage all the third-party packages. Is there any platform like that can keep a copy of these packages or some other ways to avoid packages being removed?

  • 写回答

1条回答 默认 最新

  • down101102 2014-06-20 08:34
    关注

    The simplest way to do this would be for you to simply fork the git repository, and use this version instead of the "live" one. This way you could test for compatibility before upgrades, etc, and ensure that your dependency is available for as long as you are working with it.

    There may be platforms that provide this kind of service, but as a whole, you can't rely on them either. And the majority of them is more focused on versionning, keeping archives is only a (kind of) side-effect.

    评论

报告相同问题?

悬赏问题

  • ¥15 在获取boss直聘的聊天的时候只能获取到前40条聊天数据
  • ¥20 关于URL获取的参数,无法执行二选一查询
  • ¥15 液位控制,当液位超过高限时常开触点59闭合,直到液位低于低限时,断开
  • ¥15 marlin编译错误,如何解决?
  • ¥15 有偿四位数,节约算法和扫描算法
  • ¥15 VUE项目怎么运行,系统打不开
  • ¥50 pointpillars等目标检测算法怎么融合注意力机制
  • ¥20 Vs code Mac系统 PHP Debug调试环境配置
  • ¥60 大一项目课,微信小程序
  • ¥15 求视频摘要youtube和ovp数据集