# hof mod vendor - with deps

env HOF_PRIVATE=github.com,gitlab.com,bitbucket.org

## blankout token vars for this test
env GITHUB_TOKEN=
env GITLAB_TOKEN=
env BITBUCKET_USERNAME=
env BITBUCKET_PASSWORD=

## setup sshkey auth
mkdir $HOME/.ssh
exec bash -c 'echo $HOFMOD_SSHKEY > $HOME/.ssh/id_rsa'
exec bash -c 'echo $HOFMOD_PUBKEY > $HOME/.ssh/id_rsa.pub'
cp ssh/config $HOME/.ssh/config

## run cmd
exec hof mod vendor

-- ssh/config --
# github account
Host github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

# gitlab account
Host gitlab.com
HostName gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

# bitbucket account
Host bitbucket.org
HostName bitbucket.org
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa

-- cue.mod/module.cue --
module: "github.com/test/priv-all"
cue: "0.8.2"

require: {
    "bitbucket.org/hofstadter/hofmod-test-priv-bitbucket": "v0.0.2"
    "github.com/hofstadter-io/hofmod-test-priv-github": "v0.0.2"
    "gitlab.com/_hofstadter/hofmod-test-priv-gitlab": "v0.0.2"
}
