Skip to content

feat(pipenv): omit PURL for local VCS dependencies - #1159

Open
pinsara23 wants to merge 2 commits into
CycloneDX:mainfrom
pinsara23:feat/pipenv-local-vcs
Open

pinsara23 wants to merge 2 commits into
CycloneDX:mainfrom
pinsara23:feat/pipenv-local-vcs

Conversation

@pinsara23

Copy link
Copy Markdown

Local VCS dependencies in Pipfile.lock (e.g. "git": "git+file:///…") got a pkg:pypi/ PURL, unlike local file/path dependencies, which correctly get none.

PipenvBB.__is_local() returned False before checking VCS keys. It now falls through to the VCS URL (via __package_vcs()) when there's no file/path key, so the existing file/+file scheme check applies. Remote VCS dependencies (e.g. git+https://…) keep their PURL.

Adds a pipenv/local-vcs test fixture covering both cases: a local git+file dependency (no PURL) and a remote git+https dependency (PURL kept). No existing snapshots changed.

Closes #1152

Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
@pinsara23
pinsara23 requested a review from a team as a code owner November 26, 2026 19:10
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity ✅ 0 (≤ 20 complexity)
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
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.

pipenv subcommand emits VCS PURLs for affected dependencies in Pipfile.lock

1 participant