You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After I done these steps. I'm use go get at another repo import utils repo into my project.
I use go get -u code.xxx.com/common/ts_utils command import utils private package into my other repo. But I get err:
Also I'm try to use go get -v code.teamsun.com/common/ts_utils.git(extra suffix: .git)
I think i need to add utils project go.mod:
What did you see happen?
I am not sure why such an error occurs with go get to my private package.
What did you expect to see?
I tried something else:
remove utils go.mod. go get -u xxx/xxx/utils.git(But I need go.mod file)
use replace in import repo go.mod file:
But I need manual to upgrade private pkg when utils code update .
These are some intermediate steps that can be ignored because I don't want the real problem to get lost.
Thank you all in advance for your help.
The text was updated successfully, but these errors were encountered:
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
Go version
go version go1.22.2 linux/amd64
Output of
go env
in your module/workspace:What did you do?
I done below steps before go get private package:
Step1: set go_private_proxy use code.xxx.com.
Step2: set git insteadOf---
[url "[email protected]:"] insteadOf = https://code.xxx.com/
My private repo on gitea like:

After I done these steps. I'm use

go get
at another repo import utils repo into my project.I use
go get -u code.xxx.com/common/ts_utils
command import utils private package into my other repo. But I get err:Also I'm try to use

go get -v code.teamsun.com/common/ts_utils.git
(extra suffix:.git
)I think i need to add utils project go.mod:

What did you see happen?
I am not sure why such an error occurs with


go get
to my private package.What did you expect to see?
I tried something else:
go get -u xxx/xxx/utils.git
(But I need go.mod file)But I need manual to upgrade private pkg when utils code update .
These are some intermediate steps that can be ignored because I don't want the real problem to get lost.
Thank you all in advance for your help.
The text was updated successfully, but these errors were encountered: