Reputation: 10507
I have a project that is hosted on source.cloud.google.com. I am hoping to use go get
and go modules to manage it. When I do go get
, I get the following:
$ go get source.cloud.google.com/<PROJECT-ID>/<REPO>
go get source.cloud.google.com/<PROJECT-ID>/<REPO>: unrecognized import path "source.cloud.google.com/<PROJECT-ID>/<REPO>" (parse https://source.cloud.google.com/<PROJECT-ID>/<REPO>?go-get=1: no go-import meta tags ())
Has anyone got this to work?
Upvotes: 2
Views: 508
Reputation: 11
Don't forget about the .git in the end
go get source.developers.google.com/p/<PROJECT-ID>/r/<REPO>.git
Upvotes: 1
Reputation: 10507
I got it working with a vanity URL.
vanity.yaml
cat vanity.yaml
paths:
/<REPO>:
repo: https://source.developers.google.com/p/<PROJECT-ID>/r/<REPO>
vcs: git
Upvotes: 0