私有仓库的代码在本地有,但是没有这个仓库的权限,不是我自己的仓库,代码最初是开源的,之后设为私有了。
之前克隆了一份到本地,不知道怎么引用,纯小白 GoGoGo 。
go build
build my_project: cannot find module for path github.com/example/my_project/xxx/xxx/xxx
私有仓库的代码在本地有,但是没有这个仓库的权限,不是我自己的仓库,代码最初是开源的,之后设为私有了。
之前克隆了一份到本地,不知道怎么引用,纯小白 GoGoGo 。
go build
build my_project: cannot find module for path github.com/example/my_project/xxx/xxx/xxx
|
maichaelAug 11, 2020
1
你都没权限还能怎么办。
|
|
VegetableAug 11, 2020
2
把仓库上传到自己的 github 上,引用地址改一下
|
|
virusdefenderAug 11, 2020
3
git submodule
|
|
robinchAug 11, 2020
4
读读代码
|
|
JirajineAug 11, 2020 via Android
5
|
|
AmrtaShivaAug 11, 2020 via iPhone
6
编辑 go.mod
require github.com/example/my_project/xxx/xxx/xxx v0.0.0 replace github.com/example/my_project/xxx/xxx/xxx =>/你 clone 的本地地址 |
|
LeiggAug 11, 2020 via Android
7
记得有个 GOPRIVATE 变量解决
|
|
reusAug 11, 2020
8
|
|
9
|