Some of my dependency is in my local gitlab, if I use https, it will need Username and Password, so I choose to use ssh.
HTTPS like this:
[remote "origin"]
url = https://git.dayu.com/grpc_gen/ad_system_gen_go.git
fetch = +refs/heads/*:refs/remotes/origin/*
SSH like this:
[remote "origin"]
url = [email protected]:grpc_gen/ad_system_gen_go.git
fetch = +refs/heads/*:refs/remotes/origin/*
but my glide.yaml is like this:
package: git.dayu.com/grpc_data_provider/admin_web_api.git
import:
- package: git.dayu.com/grpc_gen/ad_system_gen_go.git
It must be HTTPS
Have a look at the documentation on glide.yaml.
The short story is that you can include repo, which will be the remote repository location. In your case, that would be
package: git.dayu.com/grpc_data_provider/admin_web_api
import:
- package: git.dayu.com/grpc_gen/ad_system_gen_go
repo: [email protected]:grpc_gen/ad_system_gen_go.git
Does this work correctly? See heroku/heroku-buildpack-go#148
@freeformz I thought it was working for me locally. But I'm using Cloud9 and deploying to Heroku. So maybe it only worked on Cloud9 for some crazy weird reason? I may have also installed an older release by accident.
@chacken My output in the linked issue is with v0.12.2 (latest release ATM) of glide.
Glide drops down to the git cli to execute Git commands. Is anonymous access enabled for git@... addresses? Might https://git.dayu.com/grpc_gen/ad_system_gen_go.git work?
@mattfarina Sorry for the noise. Turns out I didn't have my github key loaded at the time. :-(
@hyPiRion it helps me a lot, thanks very much, although I can not generate glide.yaml this time
Most helpful comment
Have a look at the documentation on glide.yaml.
The short story is that you can include
repo, which will be the remote repository location. In your case, that would be