It is possible to add a dependency of a private git repo?
See original GitHub issue- I have searched the issues of this repo and believe that this is not a duplicate.
- I have searched the documentation and believe that my question is not covered.
Question
It is possible to add a dependency of a private git repo?
I’ve just stated to use poetry, I quite like some of the features, but i’m now stuck since installing a private repo doesn’t seem to work…
toml file extract
[tool.poetry.dependencies]
python = "~3.6" # Compatible python versions must be declared here
toml = "^0.9"
# Git dependencies
myprivaterepo = { git = "git@github.com:myorganization/myprivaterepo.git", branch = "master" }
I’ve also tried with different git url forms:
- https://github.com/myorganization/myprivaterepo.git
- git+ssh://git@github.com/myorganization/myprivaterepo.git
the corresponding pip command i have used till now is:
pip install git+ssh://git@github.com/myorganization/myprivaterepo.git
This is the error i get:
Updating dependencies
Resolving dependencies... (0.0s)
[AssertionError]
Exception trace:
/Users/mdeluca/.poetry/lib/poetry/_vendor/py3.6/cleo/application.py in run() at line 94
status_code = self.do_run(input_, output_)
/Users/mdeluca/.poetry/lib/poetry/console/application.py in do_run() at line 88
return super(Application, self).do_run(i, o)
/Users/mdeluca/.poetry/lib/poetry/_vendor/py3.6/cleo/application.py in do_run() at line 197
status_code = command.run(input_, output_)
/Users/mdeluca/.poetry/lib/poetry/console/commands/command.py in run() at line 77
return super(BaseCommand, self).run(i, o)
/Users/mdeluca/.poetry/lib/poetry/_vendor/py3.6/cleo/commands/base_command.py in run() at line 146
status_code = self.execute(input_, output_)
/Users/mdeluca/.poetry/lib/poetry/_vendor/py3.6/cleo/commands/command.py in execute() at line 107
return self.handle()
/Users/mdeluca/.poetry/lib/poetry/console/commands/update.py in handle() at line 41
return installer.run()
/Users/mdeluca/.poetry/lib/poetry/installation/installer.py in run() at line 76
self._do_install(local_repo)
/Users/mdeluca/.poetry/lib/poetry/installation/installer.py in _do_install() at line 158
ops = solver.solve(use_latest=self._whitelist)
/Users/mdeluca/.poetry/lib/poetry/puzzle/solver.py in solve() at line 38
packages, depths = self._solve(use_latest=use_latest)
/Users/mdeluca/.poetry/lib/poetry/puzzle/solver.py in _solve() at line 171
self._package, self._provider, locked=locked, use_latest=use_latest
/Users/mdeluca/.poetry/lib/poetry/mixology/__init__.py in resolve_version() at line 7
return solver.solve()
/Users/mdeluca/.poetry/lib/poetry/mixology/version_solver.py in solve() at line 79
next = self._choose_package_version()
/Users/mdeluca/.poetry/lib/poetry/mixology/version_solver.py in _choose_package_version() at line 380
for incompatibility in self._provider.incompatibilities_for(version):
/Users/mdeluca/.poetry/lib/poetry/puzzle/provider.py in incompatibilities_for() at line 447
for dep in dependencies
/Users/mdeluca/.poetry/lib/poetry/puzzle/provider.py in <listcomp>() at line 447
for dep in dependencies
/Users/mdeluca/.poetry/lib/poetry/mixology/incompatibility.py in __init__() at line 59
assert by_ref[ref] is not None
Issue Analytics
- State:
- Created 5 years ago
- Reactions:12
- Comments:41 (10 by maintainers)
Top Results From Across the Web
Using a private git repo as a dependency in Flutter - Medium
Using a private git repo as a dependency in Flutter. This article shows you how to add a private repo as a flutter...
Read more >How to use private Github repo as npm dependency
It can be done via https and oauth or ssh. https and oauth: create an access token that has "repo" scope and then...
Read more >Private Dependencies GitHub - Travis CI Docs
You can add SSH keys to user accounts on GitHub. Most users have probably already done this to be able to clone the...
Read more >Pull code from a private Git repository
To grant access to a private Git repository, add the project's public SSH key ... can access your private repository via SSH, including...
Read more >Dependabot ❤️s private dependencies | The GitHub Blog
Dependabot can now update dependencies from private registries and private GitHub repositories.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

You need to specify the protocol:
Or just add using the --git flag
See here for more info on the add command https://poetry.eustace.io/docs/cli/#add
@dazza-codes: The correct syntax would be:
fin swimmer