From 40bc1afe5869d1ae381396591b526e2c5c2991c8 Mon Sep 17 00:00:00 2001
From: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
Date: Fri, 27 Nov 2026 00:38:47 +0530
Subject: [PATCH 1/2] feat(pipenv): omit PURL for local VCS dependencies
Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
---
cyclonedx_py/_internal/pipenv.py | 2 +
tests/_data/infiles/pipenv/local-vcs/Pipfile | 8 ++
.../infiles/pipenv/local-vcs/Pipfile.lock | 27 ++++
.../infiles/pipenv/local-vcs/pyproject.toml | 5 +
.../pipenv/plain_local-vcs_1.0.xml.bin | 16 +++
.../pipenv/plain_local-vcs_1.1.xml.bin | 26 ++++
.../pipenv/plain_local-vcs_1.2.json.bin | 67 +++++++++
.../pipenv/plain_local-vcs_1.2.xml.bin | 50 +++++++
.../pipenv/plain_local-vcs_1.3.json.bin | 85 +++++++++++
.../pipenv/plain_local-vcs_1.3.xml.bin | 59 ++++++++
.../pipenv/plain_local-vcs_1.4.json.bin | 118 ++++++++++++++++
.../pipenv/plain_local-vcs_1.4.xml.bin | 84 +++++++++++
.../pipenv/plain_local-vcs_1.5.json.bin | 132 +++++++++++++++++
.../pipenv/plain_local-vcs_1.5.xml.bin | 94 +++++++++++++
.../pipenv/plain_local-vcs_1.6.json.bin | 133 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.6.xml.bin | 94 +++++++++++++
.../pipenv/plain_local-vcs_1.7.json.bin | 133 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.7.xml.bin | 94 +++++++++++++
18 files changed, 1227 insertions(+)
create mode 100644 tests/_data/infiles/pipenv/local-vcs/Pipfile
create mode 100644 tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
create mode 100644 tests/_data/infiles/pipenv/local-vcs/pyproject.toml
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
create mode 100644 tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
diff --git a/cyclonedx_py/_internal/pipenv.py b/cyclonedx_py/_internal/pipenv.py
index 0c1d5997d..8bcde3439 100644
--- a/cyclonedx_py/_internal/pipenv.py
+++ b/cyclonedx_py/_internal/pipenv.py
@@ -202,6 +202,8 @@ def __is_local(self, data: 'NameDict') -> bool:
location: str = data['file']
elif 'path' in data:
location = data['path']
+ elif (vcs_source := self.__package_vcs(data)) is not None:
+ location = vcs_source[1]
else:
return False
# schema length is expected to be at least 2 chars, to prevent confusion with Windows drive letters `C:\`
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile b/tests/_data/infiles/pipenv/local-vcs/Pipfile
new file mode 100644
index 000000000..b51507355
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile
@@ -0,0 +1,8 @@
+[pipenv]
+sort_pipfile = true
+
+[packages]
+my-local-project = {git = "git+file:///home/user/projects/my-local-project", ref = "da59ad000d1405eaecd557175e29083a87d19f7c"}
+six = {git = "git+https://github.com/benjaminp/six.git", ref = "1.16.0"}
+
+[dev-packages]
\ No newline at end of file
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
new file mode 100644
index 000000000..bd90cfff4
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
@@ -0,0 +1,27 @@
+{
+ "_meta": {
+ "hash": {
+ "sha256": "0000000000000000000000000000000000000000000000000000000000000000"
+ },
+ "pipfile-spec": 6,
+ "requires": {},
+ "sources": [
+ {
+ "name": "pypi",
+ "url": "https://pypi.org/simple",
+ "verify_ssl": true
+ }
+ ]
+ },
+ "default": {
+ "my-local-project": {
+ "git": "git+file:///home/user/projects/my-local-project",
+ "ref": "da59ad000d1405eaecd557175e29083a87d19f7c"
+ },
+ "six": {
+ "git": "git+https://github.com/benjaminp/six.git",
+ "ref": "65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ },
+ "develop": {}
+}
\ No newline at end of file
diff --git a/tests/_data/infiles/pipenv/local-vcs/pyproject.toml b/tests/_data/infiles/pipenv/local-vcs/pyproject.toml
new file mode 100644
index 000000000..81f950cc4
--- /dev/null
+++ b/tests/_data/infiles/pipenv/local-vcs/pyproject.toml
@@ -0,0 +1,5 @@
+[project]
+# https://packaging.python.org/en/latest/specifications/declaring-project-metadata/#declaring-project-metadata
+name = "local-vcs"
+version = "0.1.0"
+description = "packages from local VCS repositories"
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
new file mode 100644
index 000000000..2ec66b1b7
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
@@ -0,0 +1,16 @@
+
+
+
+
+ my-local-project
+
+ false
+
+
+ six
+
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+ false
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
new file mode 100644
index 000000000..9df82ec74
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
@@ -0,0 +1,26 @@
+
+
+
+
+ my-local-project
+
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+
+ six
+
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
new file mode 100644
index 000000000..3b6e4c89e
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
@@ -0,0 +1,67 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "type": "library",
+ "version": ""
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library",
+ "version": ""
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.2b.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.2"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
new file mode 100644
index 000000000..795737623
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
@@ -0,0 +1,50 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+
+
+ my-local-project
+
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+
+ six
+
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
new file mode 100644
index 000000000..f657bfdf3
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
@@ -0,0 +1,85 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library",
+ "version": ""
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library",
+ "version": ""
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.3a.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.3"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
new file mode 100644
index 000000000..4f42a5ade
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
@@ -0,0 +1,59 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+ true
+
+
+
+
+ my-local-project
+
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+ six
+
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
new file mode 100644
index 000000000..3463afc5d
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
@@ -0,0 +1,118 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": [
+ {
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "name": "cyclonedx-py",
+ "vendor": "CycloneDX",
+ "version": "thisVersion-testing"
+ },
+ {
+ "externalReferences": [ ],
+ "name": "cyclonedx-python-lib",
+ "vendor": "CycloneDX",
+ "version": "libVersion-testing"
+ }
+ ]
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.4.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.4"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
new file mode 100644
index 000000000..cb24a7252
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
@@ -0,0 +1,84 @@
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+ true
+
+
+
+
+ my-local-project
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+ six
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
new file mode 100644
index 000000000..09d39720a
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
@@ -0,0 +1,132 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.5.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.5"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
new file mode 100644
index 000000000..db168209f
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+ true
+
+
+
+
+ my-local-project
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+ six
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
new file mode 100644
index 000000000..1fa59b8cb
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
@@ -0,0 +1,133 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.6.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.6"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
new file mode 100644
index 000000000..f11cd18a8
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+ true
+
+
+
+
+ my-local-project
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+ six
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
new file mode 100644
index 000000000..bf80cea5c
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
@@ -0,0 +1,133 @@
+{
+ "components": [
+ {
+ "bom-ref": "my-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
+ {
+ "bom-ref": "six",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1"
+ }
+ ],
+ "name": "six",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "purl": "pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1",
+ "type": "library"
+ }
+ ],
+ "dependencies": [
+ {
+ "ref": "my-local-project"
+ },
+ {
+ "ref": "root-component"
+ },
+ {
+ "ref": "six"
+ }
+ ],
+ "metadata": {
+ "component": {
+ "bom-ref": "root-component",
+ "description": "packages from local VCS repositories",
+ "name": "local-vcs",
+ "type": "application",
+ "version": "0.1.0"
+ },
+ "properties": [
+ {
+ "name": "cdx:reproducible",
+ "value": "true"
+ }
+ ],
+ "tools": {
+ "components": [
+ {
+ "description": "CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments",
+ "externalReferences": [
+ {
+ "type": "build-system",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/actions"
+ },
+ {
+ "type": "distribution",
+ "url": "https://pypi.org/project/cyclonedx-bom/"
+ },
+ {
+ "type": "documentation",
+ "url": "https://cyclonedx-bom-tool.readthedocs.io/"
+ },
+ {
+ "type": "issue-tracker",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/issues"
+ },
+ {
+ "type": "license",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE"
+ },
+ {
+ "type": "release-notes",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md"
+ },
+ {
+ "type": "vcs",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/"
+ },
+ {
+ "type": "website",
+ "url": "https://github.com/CycloneDX/cyclonedx-python/#readme"
+ }
+ ],
+ "group": "CycloneDX",
+ "licenses": [
+ {
+ "license": {
+ "acknowledgement": "declared",
+ "id": "Apache-2.0"
+ }
+ }
+ ],
+ "name": "cyclonedx-py",
+ "type": "application",
+ "version": "thisVersion-testing"
+ },
+ {
+ "description": "stripped",
+ "externalReferences": [ ],
+ "group": "CycloneDX",
+ "licenses": [ ],
+ "name": "cyclonedx-python-lib",
+ "type": "library",
+ "version": "libVersion-testing"
+ }
+ ]
+ }
+ },
+ "version": 1,
+ "$schema": "http://cyclonedx.org/schema/bom-1.7.schema.json",
+ "bomFormat": "CycloneDX",
+ "specVersion": "1.7"
+}
\ No newline at end of file
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
new file mode 100644
index 000000000..7869568f9
--- /dev/null
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
@@ -0,0 +1,94 @@
+
+
+
+
+
+
+ CycloneDX
+ cyclonedx-py
+ thisVersion-testing
+ CycloneDX Software Bill of Materials (SBOM) generator for Python projects and environments
+
+
+ Apache-2.0
+
+
+
+
+ https://github.com/CycloneDX/cyclonedx-python/actions
+
+
+ https://pypi.org/project/cyclonedx-bom/
+
+
+ https://cyclonedx-bom-tool.readthedocs.io/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/issues
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/LICENSE
+
+
+ https://github.com/CycloneDX/cyclonedx-python/blob/main/CHANGELOG.md
+
+
+ https://github.com/CycloneDX/cyclonedx-python/
+
+
+ https://github.com/CycloneDX/cyclonedx-python/#readme
+
+
+
+
+ CycloneDX
+ cyclonedx-python-lib
+ libVersion-testing
+
+
+
+
+
+
+
+ local-vcs
+ 0.1.0
+ packages from local VCS repositories
+
+
+ true
+
+
+
+
+ my-local-project
+
+
+ git+file:///home/user/projects/my-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
+
+ six
+ pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
+
+
+ git+https://github.com/benjaminp/six.git#65486e4383f9f411da95937451205d3c7b61b9e1
+ from git
+
+
+
+ default
+
+
+
+
+
+
+
+
+
From df088c4bbaaae94e726b3e0ccc9a2761de851a2a Mon Sep 17 00:00:00 2001
From: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
Date: Fri, 27 Nov 2026 01:02:22 +0530
Subject: [PATCH 2/2] test(pipenv): cover plain file:// VCS URL
Signed-off-by: Pinsara Sarathchandra <113714@foe.sjp.ac.lk>
---
tests/_data/infiles/pipenv/local-vcs/Pipfile | 1 +
.../infiles/pipenv/local-vcs/Pipfile.lock | 4 ++++
.../pipenv/plain_local-vcs_1.0.xml.bin | 5 +++++
.../pipenv/plain_local-vcs_1.1.xml.bin | 10 +++++++++
.../pipenv/plain_local-vcs_1.2.json.bin | 16 ++++++++++++++
.../pipenv/plain_local-vcs_1.2.xml.bin | 11 ++++++++++
.../pipenv/plain_local-vcs_1.3.json.bin | 22 +++++++++++++++++++
.../pipenv/plain_local-vcs_1.3.xml.bin | 14 ++++++++++++
.../pipenv/plain_local-vcs_1.4.json.bin | 21 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.4.xml.bin | 13 +++++++++++
.../pipenv/plain_local-vcs_1.5.json.bin | 21 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.5.xml.bin | 13 +++++++++++
.../pipenv/plain_local-vcs_1.6.json.bin | 21 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.6.xml.bin | 13 +++++++++++
.../pipenv/plain_local-vcs_1.7.json.bin | 21 ++++++++++++++++++
.../pipenv/plain_local-vcs_1.7.xml.bin | 13 +++++++++++
16 files changed, 219 insertions(+)
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile b/tests/_data/infiles/pipenv/local-vcs/Pipfile
index b51507355..ff13a5e41 100644
--- a/tests/_data/infiles/pipenv/local-vcs/Pipfile
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile
@@ -4,5 +4,6 @@ sort_pipfile = true
[packages]
my-local-project = {git = "git+file:///home/user/projects/my-local-project", ref = "da59ad000d1405eaecd557175e29083a87d19f7c"}
six = {git = "git+https://github.com/benjaminp/six.git", ref = "1.16.0"}
+my-other-local-project = {git = "file:///home/user/projects/my-other-local-project", ref = "da59ad000d1405eaecd557175e29083a87d19f7c"}
[dev-packages]
\ No newline at end of file
diff --git a/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
index bd90cfff4..7e9cc5a16 100644
--- a/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
+++ b/tests/_data/infiles/pipenv/local-vcs/Pipfile.lock
@@ -18,6 +18,10 @@
"git": "git+file:///home/user/projects/my-local-project",
"ref": "da59ad000d1405eaecd557175e29083a87d19f7c"
},
+ "my-other-local-project": {
+ "git": "file:///home/user/projects/my-other-local-project",
+ "ref": "da59ad000d1405eaecd557175e29083a87d19f7c"
+ },
"six": {
"git": "git+https://github.com/benjaminp/six.git",
"ref": "65486e4383f9f411da95937451205d3c7b61b9e1"
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
index 2ec66b1b7..81a0a2b27 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.0.xml.bin
@@ -6,6 +6,11 @@
false
+
+ my-other-local-project
+
+ false
+
six
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
index 9df82ec74..ccd372b05 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.1.xml.bin
@@ -11,6 +11,16 @@
+
+ my-other-local-project
+
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
six
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
index 3b6e4c89e..adc3d3e84 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.json.bin
@@ -13,6 +13,19 @@
"type": "library",
"version": ""
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "type": "library",
+ "version": ""
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -32,6 +45,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
index 795737623..1a9fc93bd 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.2.xml.bin
@@ -30,6 +30,16 @@
+
+ my-other-local-project
+
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
six
@@ -44,6 +54,7 @@
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
index f657bfdf3..c08c3877e 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.json.bin
@@ -19,6 +19,25 @@
"type": "library",
"version": ""
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library",
+ "version": ""
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -44,6 +63,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
index 4f42a5ade..73fbb4341 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.3.xml.bin
@@ -36,6 +36,19 @@
default
+
+ my-other-local-project
+
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
six
@@ -53,6 +66,7 @@
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
index 3463afc5d..3ce9698f0 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.json.bin
@@ -18,6 +18,24 @@
],
"type": "library"
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -42,6 +60,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
index cb24a7252..dd8eb7214 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.4.xml.bin
@@ -62,6 +62,18 @@
default
+
+ my-other-local-project
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
six
pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
@@ -78,6 +90,7 @@
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
index 09d39720a..3b55cc9c8 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.json.bin
@@ -18,6 +18,24 @@
],
"type": "library"
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -42,6 +60,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
index db168209f..0f2e6d365 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.5.xml.bin
@@ -72,6 +72,18 @@
default
+
+ my-other-local-project
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
six
pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
@@ -88,6 +100,7 @@
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
index 1fa59b8cb..40d2d76bb 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.json.bin
@@ -18,6 +18,24 @@
],
"type": "library"
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -42,6 +60,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
index f11cd18a8..285cb8859 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.6.xml.bin
@@ -72,6 +72,18 @@
default
+
+ my-other-local-project
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
six
pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
@@ -88,6 +100,7 @@
+
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
index bf80cea5c..57c2f5d65 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.json.bin
@@ -18,6 +18,24 @@
],
"type": "library"
},
+ {
+ "bom-ref": "my-other-local-project",
+ "externalReferences": [
+ {
+ "comment": "from git",
+ "type": "vcs",
+ "url": "file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c"
+ }
+ ],
+ "name": "my-other-local-project",
+ "properties": [
+ {
+ "name": "cdx:pipenv:category",
+ "value": "default"
+ }
+ ],
+ "type": "library"
+ },
{
"bom-ref": "six",
"externalReferences": [
@@ -42,6 +60,9 @@
{
"ref": "my-local-project"
},
+ {
+ "ref": "my-other-local-project"
+ },
{
"ref": "root-component"
},
diff --git a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
index 7869568f9..51ff1cdc6 100644
--- a/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
+++ b/tests/_data/snapshots/pipenv/plain_local-vcs_1.7.xml.bin
@@ -72,6 +72,18 @@
default
+
+ my-other-local-project
+
+
+ file:///home/user/projects/my-other-local-project#da59ad000d1405eaecd557175e29083a87d19f7c
+ from git
+
+
+
+ default
+
+
six
pkg:pypi/six?vcs_url=git%2Bhttps://github.com/benjaminp/six.git%4065486e4383f9f411da95937451205d3c7b61b9e1
@@ -88,6 +100,7 @@
+