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.26k stars 173 forks source link

Poetry: Support v1.5.0 or greater #1420

Closed meghfossa closed 4 months ago

meghfossa commented 4 months ago

Overview

This PR adds partial support for dependency groups.

Previously, FOSSA CLI presumed, that when category was not provided, dependency was production dependency. This assumption is incorrect starting with v1.5.0 of poetry. This PR provides partial fix.

Acceptance criteria

Testing plan

I relied on automated tests - but you can perform following.

git checkout master && git pull origin && git checkout temp/megh-git-poetry-dev
cabal run fossa -- analyze -o ./sandbox 

Place items from https://fossa.atlassian.net/browse/ANE-1281 in sandbox. (with these files you should see 0 deps)

Risks

N/A

References

https://fossa.atlassian.net/browse/ANE-1281

Checklist