Skip to content

Comments

Fix: Authenticated Git dependencies incorrectly parsed as npm alias#4766

Open
pantha704 wants to merge 2 commits intoaboutcode-org:developfrom
pantha704:issue-4753-NPM-git-urls
Open

Fix: Authenticated Git dependencies incorrectly parsed as npm alias#4766
pantha704 wants to merge 2 commits intoaboutcode-org:developfrom
pantha704:issue-4753-NPM-git-urls

Conversation

@pantha704
Copy link

Fixes #4753. The package parser inside npm.py's deps_mapper was evaluating dependencies via a naive string check (if : and @ exist in the requirement), which falsely captured authenticated git repos like git+ssh://git@github.com... as aliases of package 'git'. This modifies the check strictly to require the npm: prefix and an @ delimiter, fixing both NPM package aliases and YarnLock dependency statements. Tests are included.

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.

Authenticated Git dependency in package.json parsed as package "git" instead of declared dependency name

1 participant