I am running into what sounds like a limitation in an overall simple approach for integrating git with go install.
How do I get around this problem?
You might have forked github.com/user1/goproject
into github.com/user2/goproject
, that does not mean you cannot clone it wherever you want in your GOPATH
.
In particular, you can clone it in:
$GOPATH
github.com
user1
goproject
You effectively are replacing the local clone of the original repo by the clone of your fork.
That means locally, you don't change any package path, even though git remote -v
tells you are are pushing back to your fork url github.com/user2/goproject
.