'Referring from a sub branch of the main module
I have a few changes that I have completed on a separate branch other than the main or master in the main app.
But now I need to refer a few modules from that particular branch (I too am building from it's local copy) to be used by the same branch, and currently I am getting the following error.
go get -d github.com/orgname/reponame@feature/branch
go: package github.com/orgname/reponame is in the main module, so can't request version feature/branch
I did import another module from another private branch and that step in the process is now getting succeeded.
Is there any way to fix this, or is it must to proceed with the main branch
Anything that I am missing specific to Go?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
