classify deps by source type: referenced, remote, vendored, custom#15
Open
jtrinidad-fossa wants to merge 1 commit into
Open
classify deps by source type: referenced, remote, vendored, custom#15jtrinidad-fossa wants to merge 1 commit into
jtrinidad-fossa wants to merge 1 commit into
Conversation
Packages fetched from git repositories are now emitted as referenced-dependencies (type: git) with HTTPS URLs and git refs extracted from PKGV. Packages fetched via HTTP/HTTPS tarballs become remote-dependencies. Local-only packages fall back to vendored-dependency (when FOSSA_LICENSE_SCAN=1) or custom-dependency. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Summary
referenced-dependencies(type:git) with HTTPS URLs and git refs extracted fromPKGVremote-dependencieswith clean URLs (BitBake fetcher options stripped) and optional description/homepage metadatafile://SRC_URI) fall back tovendored-dependencywhenFOSSA_LICENSE_SCAN=1and source is captured, otherwisecustom-dependencyPreviously everything was emitted as
custom-dependency(orvendored-dependencyonly when license scan was enabled). This change makes the dependency graph richer and allows FOSSA to resolve upstream sources directly.New helpers in
fossa_utils.bbclassfind_primary_remote_url(src_uri)— returns first non-file://URI from SRC_URIis_git_uri(uri)— detectsgit:///gitsm://fetchersgit_uri_to_https(uri)— converts BitBake git URI +protocol=httpsoption to a plain HTTPS URLextract_git_version(full_version)— extracts commit hash from2.39+git0+ce65d944e3-r0or uses version string as a tag refmk_referenced_git_dependency(dep, url)— builds areferenced-dependencyentrymk_remote_dependency(dep, url, recipe)— builds aremote-dependencyentryTest plan
fossa analyzeruns cleanly against afossa-deps.ymlgenerated from the new logicsystemd,busybox,curl) appear asreferenced-dependenciesin the FOSSA UIremote-dependenciesbase-files,packagegroup-*) appear ascustom-dependencieswithoutFOSSA_LICENSE_SCAN, andvendored-dependencieswith it🤖 Generated with Claude Code