I'm trying to configure stack to use the Haskell packages of a private git repository. Looking at the documentation it seems that the git repository can be added as local dependency. The problem is that I see no way of specifying the credentials for logging into the server.
What is the right way of adding packages of a private git repository using stack?
EDIT: For the sake of completeness I add the section of stack.yaml
that edited to be able to use a private repository:
packages:
- '.'
- location:
git: ssh://[email protected]:7999/project/subproject.git
commit: 4ac0e47bfd3
subdirs:
- subdir-of-the-private-package
extra-dep: true
As @renegadeborealis pointed out, the authentication is taken care of outside of Stack.
GitHub Pages is available in public repositories with GitHub Free and GitHub Free for organizations, and in public and private repositories with GitHub Pro, GitHub Team, GitHub Enterprise Cloud, and GitHub Enterprise Server.
Yes. You should be able to add the other repo as a new (tracking) remote (eg. 'other-repo')and then periodically fetch and merge changes from it (eg. 'git merge other-repo/stable').
Clone repository Open the command palette with the key combination of Ctrl + Shift + P . At the command palette prompt, enter gitcl , select the Git: Clone command, and press Enter. When prompted for the Repository URL, select clone from GitHub, then press Enter.
You'll set the authentication in Git itself, not in stack.
If you're using git over ssh, you can set authentication options in ~/.ssh/config
Host me.github.com
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/me_rsa
Here's some good reading if you need more. Good luck!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With