dsozqcx9668 2016-09-05 08:53
浏览 777

使用go get从本地存储库和私有仓库中检索

Hi my goal is to have go get retrieve from a private repo on github.

The problem I am having is that I am committing into a folder structure that is outside of my GOPATH. So I want to test that what I have works before I commit.

1) How do I make go get retrieve from a local directory that is outside my path. Say my go code is in a directory $HOME/project/ How can I tell go get to retrieve the package and place it in the appropriate github.com folder structure so that my package references work?

2) How can I use go get to pull from a private repo? Should it just ask for my username and password?

  • 写回答

2条回答 默认 最新

  • dongxi3911 2016-09-05 09:58
    关注

    You cannot do neither 1) nor 2) (easily). go get is not intended to be used this way.

    评论

报告相同问题?

悬赏问题

  • ¥50 buildozer打包kivy app失败
  • ¥30 在vs2022里运行python代码
  • ¥15 不同尺寸货物如何寻找合适的包装箱型谱
  • ¥15 求解 yolo算法问题
  • ¥15 虚拟机打包apk出现错误
  • ¥15 用visual studi code完成html页面
  • ¥15 聚类分析或者python进行数据分析
  • ¥15 三菱伺服电机按启动按钮有使能但不动作
  • ¥15 js,页面2返回页面1时定位进入的设备
  • ¥50 导入文件到网吧的电脑并且在重启之后不会被恢复