Hi,
In my project, I use more than one private repos, when glide asks me about the credential (user/password), stdin and glide's logs make me confused, they are scrambled each other, please see the output below:
[INFO] --> Fetching updates for <private repo1>.
[INFO] --> Fetching <private repo2>
[INFO] --> Fetching updates for golang.org/x/crypto.
Username for 'https://<private repo1>': [INFO] --> Fetching updates for golang.org/x/net.
yoUsername for '<private repo2>': gi[INFO] --> Fetching updates for gopkg.in/ldap.v2.
[INFO] --> Fetching updates for gopkg.in/yaml.v2.
[INFO] --> Fetching updates for github.com/yogihardi/dockerclient.
[INFO] --> Fetching updates for github.com/boltdb/bolt.
[INFO] --> Fetching updates for gopkg.in/mgo.v2.
[INFO] --> Fetching updates for github.com/bobintornado/boltdb-boilerplate.
[INFO] --> Fetching updates for gopkg.in/ahmetb/go-linq.v3.
yogi-hardi
Password for 'https://yogi-hardi@<private repo1>': Password for 'https://yogi-hardi@<private repo1>':
Username for 'https://<private repo1>': Password for 'https://yogi-hardi@<private repo1>':
[INFO] --> Fetching updates for github.com/stretchr/testify.
is there any solution to pass the credential? I prefer using Private Access Token
maybe that will be better when glide asks about credentials, it should wait until user input the user/pass and hold other process, like hold the info logs.
thanks.
Maybe this answer will solve your problem
https://stackoverflow.com/a/36500841/4075313
add in your .gitconfig :
# Enforce SSH
[url "ssh://[email protected]/"]
insteadOf = https://github.com/
[url "ssh://[email protected]/"]
insteadOf = https://gitlab.com/
[url "ssh://[email protected]/"]
insteadOf = https://bitbucket.org/
Most helpful comment
Maybe this answer will solve your problem
https://stackoverflow.com/a/36500841/4075313
add in your
.gitconfig: