Skip to content

Comments

Fix parsing of git urls with egg before subdirectory#518

Merged
radoering merged 2 commits intopython-poetry:mainfrom
apage224:fix-vcs-git-regex-order
Jan 7, 2023
Merged

Fix parsing of git urls with egg before subdirectory#518
radoering merged 2 commits intopython-poetry:mainfrom
apage224:fix-vcs-git-regex-order

Conversation

@apage224
Copy link
Contributor

@apage224 apage224 commented Nov 7, 2022

This PR addresses an issue with parsing git based dependencies. A VCS git dependency may optionally specify tag, egg, and subdirectory attributes. Due to the ordering of regex matching, some of these attributes would be silently ignored. For example, git+ssh://[email protected]:sdispater/project/my_repo.git@commit#egg=package&subdirectory=project_dir would properly extract tag as commit but subdirectory would be None. The unit tests already includes these edge case URLs, however, egg name and subdirectory were not being checked. Unit test has been updated to verify subdirectory matches.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 7, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@radoering radoering force-pushed the fix-vcs-git-regex-order branch from 98b45de to 8fc2c9f Compare January 7, 2023 14:00
@radoering radoering changed the title Fix vcs git regex order Fix parsing of git urls with egg before subdirectory Jan 7, 2023
@sonarqubecloud
Copy link

sonarqubecloud bot commented Jan 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
5.7% 5.7% Duplication

@radoering radoering merged commit 78f57f7 into python-poetry:main Jan 7, 2023
@radoering radoering mentioned this pull request Jan 24, 2023
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.

2 participants