Skip to content

Fix SSH requirements crash #61

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Itay-Saips
Copy link

@Itay-Saips Itay-Saips commented Apr 7, 2021

Having a requirement formatted as git+ssh://[email protected]/... leads to a crash with the current code version - fixed this crash by ignoring these imports. Not a perfect solution, but better than searching for SSH keys on your machine and try to fetch repo IMO...

@Itay-Saips Itay-Saips marked this pull request as draft April 7, 2021 15:24
@Itay-Saips Itay-Saips force-pushed the master branch 2 times, most recently from 7b75ce8 to 88176ca Compare April 7, 2021 15:33
@Itay-Saips Itay-Saips marked this pull request as ready for review April 7, 2021 15:35
@@ -141,6 +142,12 @@ def find_required_modules(options, requirements_filename: str):
requirement.requirement,
).name

if requirement_name is None:
# This happens when the requirement parsing fails, for e.g. a
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this only happen in this circumstance?

@MrMino
Copy link
Collaborator

MrMino commented Nov 14, 2022

The branch in the patch is sound, but I don't like the fact that we are silently ignoring these requirements. IMO it should fail, unless e.g. a --ignore-urls is specified.

I'll be working on this soon.

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

Successfully merging this pull request may close these issues.

3 participants