poy
poy

Reputation: 10507

go get with source.cloud.google.com

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

Answers (2)

Rener Castro
Rener Castro

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

poy
poy

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

Related Questions