You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Update get_source_type() to report correct source type for new source resolver config #1209
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.
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.
Activity