ort
ort copied to clipboard
Support generic `isModified` detection for packages beyond Maven
Currenly ORT only supports checking if a Maven package is modified by comparing hashes - this is useful feature to discover if say an R&D team has taken an FOSS package, modified it and uploaded it to say the internal artifactory.
FYI, this is the way it's currently implemented for Maven:
https://github.com/oss-review-toolkit/ort/blob/eb34b0dd11ee08ddbb537aa3c7eb54ecb7ff5bd7/analyzer/src/main/kotlin/managers/utils/MavenSupport.kt#L305-L321
pnpm and Yarn both have patching functionality, which at least indicated a modified package.
Now that you mention it, for Conan we have implemented something similar:
https://github.com/oss-review-toolkit/ort/blob/ab808c98ed9abc2aad8e323500edfc24ba4c55aa/plugins/package-managers/conan/src/main/kotlin/Conan.kt#L324