Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

poetry export issue with git repositories #172

Closed
narel opened this issue Jan 2, 2023 · 3 comments
Closed

poetry export issue with git repositories #172

narel opened this issue Jan 2, 2023 · 3 comments

Comments

@narel
Copy link

narel commented Jan 2, 2023

Exported requirements are broken for git repositories:

poetry add 'git+https://github.com/hbldh/bankkonto'
poetry export --without-hashes -o requirements.txt
pip install -r requirements.txt

gives:

Collecting bankkonto@ git+https://github.com/hbldh/bankkonto@HEAD
  Cloning https://github.com/hbldh/bankkonto (to revision HEAD) to /tmp/pip-install-6mm0ux77/bankkonto_ebbff97884e64ad791b34a74e1e1f8ee
  Running command git clone --filter=blob:none --quiet https://github.com/hbldh/bankkonto /tmp/pip-install-6mm0ux77/bankkonto_ebbff97884e64ad791b34a74e1e1f8ee
  Running command git checkout -b HEAD --track origin/HEAD
  fatal: 'HEAD' is not a valid branch name.
  error: subprocess-exited-with-error

It works without any problems on poetry 1.1.15.

@pn
Copy link

pn commented Mar 28, 2023

@narel, as a workaround you can specify a revision. For example:

bankkonto = {git = "https://github.com/hbldh/bankkonto", rev="f9505e0825fc3e029fe038a3cdffecc39ceec865"}

@davegaeddert
Copy link

Is this the same as #71, and should be closed?

@radoering
Copy link
Member

Maybe not exactly the same, but similar enough so that it should be fixed by the same change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants