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: missing --trusted-host argument for non-HTTPS repos #1894

Closed
2 of 3 tasks
1somorphism opened this issue Jan 15, 2020 · 4 comments · Fixed by #3014
Closed
2 of 3 tasks

poetry export: missing --trusted-host argument for non-HTTPS repos #1894

1somorphism opened this issue Jan 15, 2020 · 4 comments · Fixed by #3014
Labels
kind/bug Something isn't working as expected

Comments

@1somorphism
Copy link

  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).

Issue

Ideally line 1 of the output of poetry export -f requirements.txt for the file above should be

--extra-index-url http://10.0.0.0:8080/repository/pypi-hosted/simple --trusted-host 10.0.0.0

@1somorphism 1somorphism added the kind/bug Something isn't working as expected label Jan 15, 2020
@0xADD1E
Copy link

0xADD1E commented Mar 27, 2020

I've just worked around this by just writing out the trusted host line first

echo --trusted-host 10.0.0.0 > requirements.txt
poetry export -f requirements.txt >> requirements.txt

But I also agree that this is somewhat unexpected behaviour.

My intuition for how this would work was that there would be an option in tool.poetry.source that would allow for this (and possibly also turn off the somewhat annoying "insecure host" notice when installing packages)

@abn abn closed this as completed in #3014 Oct 19, 2020
abn pushed a commit that referenced this issue Oct 19, 2020
sdispater pushed a commit that referenced this issue Jan 30, 2021
finswimmer pushed a commit that referenced this issue Jan 30, 2021
@gusbemacbe
Copy link

@1somorphism, @0xADD1E, @edwardgeorge, @bmispelon, @blueyed, @estyxx, @abn, @finswimmer

Please check my discussion topic #4869.

@japita-se
Copy link

this very useful issue has been merged?

Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/bug Something isn't working as expected
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants