Context
The get_source_type() function classifies where a package's source came from, and this classification is written to build-order.json as "source_url_type" for reporting and auditing.
Parent epic: #936
Parent issue: #1048
Problem
When a package uses a git-clone-based source resolver (e.g. provider: github-tag-git):
req.url is None (it's a normal requirement, not a direct URL)
No plugin exists (that's the point of the new config)
No download_source.url is set
The function returns SourceType.SDIST even though the source was cloned from git. build-order.json will show:
{
"source_url": "git+https://github.com/org/repo@v1.0",
"source_url_type": "sdist"
}
This is misleading for users reviewing build output.
Context
The
get_source_type()function classifies where a package's source came from, and this classification is written tobuild-order.jsonas"source_url_type"for reporting and auditing.Parent epic: #936
Parent issue: #1048
Problem
When a package uses a git-clone-based source resolver (e.g. provider: github-tag-git):
req.url is None (it's a normal requirement, not a direct URL)
No plugin exists (that's the point of the new config)
No download_source.url is set
The function returns SourceType.SDIST even though the source was cloned from git. build-order.json will show:
{
"source_url": "git+https://github.com/org/repo@v1.0",
"source_url_type": "sdist"
}
This is misleading for users reviewing build output.