Repository navigation
fix(pipenv): strip === operator from locked versions - #1156
Open
VfourTwenty wants to merge 3 commits into
Open
VfourTwenty wants to merge 3 commits into
VfourTwenty wants to merge 3 commits into
Conversation
Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
Up to standards ✅🟢 Issues
|
| Metric | Results |
|---|---|
| Complexity | ✅ 0 (≤ 20 complexity) |
| Duplication | 0 |
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.
1 of 2 tasks
jkowalleck
requested changes
Nov 26, 2026
1 of 2 tasks
Co-authored-by: Jan Kowalleck <jan.kowalleck@gmail.com> Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
This reverts commit bef0b6f. Signed-off-by: VfourTwenty <132915930+VfourTwenty@users.noreply.github.com>
jkowalleck
approved these changes
Nov 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Pipfile.lockcan contain arbitrary-equality pins like"version": "===0.4.6". pipenv writes them when a===pinned entry has a marker that doesn't match the locking host (e.g.sys_platform == 'win32'locked on linux)._make_bomcut the version with[2:]which only works for==, so the component came out as version=0.4.6and purlpkg:pypi/colorama@%3D0.4.6, which doesn't match anything in vuln databases.[2:]with.lstrip('=')incyclonedx_py/_internal/pipenv.py, so==and===pins both give the bare versiontests/_data/infiles/pipenv/arbitrary-equality(colorama===0.4.6with a win32 marker, lockfile generated with realpipenv lockon linux) + its snapshots==pins stays the sameRan
tests.integration.test_cli_pipenvlocally: 185 pass, and with the oldpipenv.pythe 14 new cases fail with=0.4.6/%3D0.4.6.i didn't touch the bom-ref (
colorama===0.4.6). it's only an internal id that links components inside the document, vuln lookups go by purl / version, which are fixed now.Resolves or fixes issue: #1153
AI Tool Disclosure
ClaudeClaude Opus 5.5used it to trace the root cause of #1153, draft the one-line fix and generate the fixture + snapshots the way the repo's snapshot README describes. reviewed the diff myself and re-ran the pipenv tests with and without the fix in dockerAffirmation