fossas / fossa-cli

Fast, portable and reliable dependency analysis for any codebase. Supports license & vulnerability scanning for large monoliths. Language-agnostic; integrates with 20+ build systems.
https://fossa.com
Other
1.29k stars 173 forks source link

Fix license file matches #1434

Closed JeffreyHuynh1 closed 5 months ago

JeffreyHuynh1 commented 6 months ago

Overview

The changes from pr: Support true forced rebuilds for vendored dependencies, refactor types introduced a bug that caused the contents of the license file matches to be empty.

image-20240515-194646

Before the changes, the license file match contents appeared as:

Screenshot 2024-05-23 at 5 05 01 PM

After some investigation, it was discovered that the revision's license scan type was being set to full_files . This shouldn't have been the case because the given repro case should've had the scan type set to match_data

Note: Refer to the linked ANE ticket for repro case

Acceptance criteria

Testing plan

Risks

Metrics

References

Checklist