Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question about direct and transitive dependencies #357

Open
almaz045 opened this issue Oct 11, 2024 · 1 comment
Open

Question about direct and transitive dependencies #357

almaz045 opened this issue Oct 11, 2024 · 1 comment

Comments

@almaz045
Copy link
Contributor

Let's imagine a situation where we import a transitive dependency from the main dependency:
import {transitive_dep} from {direct_dep}.

In the main dependency, we have transitive dependency export allowed:
export {transitive_dep}

In this case, will depscan mark the used {transitive_dev} dependency in our code as a direct dependency or also a transitive one?

@prabhu
Copy link
Member

prabhu commented Oct 11, 2024

@almaz045 Easier to test with a sample repo. It's also an atom or cdxgen question more than dep-scan, since dep-scan relies on the scope attribute and the occurrence evidence in the SBOM for determining direct vs indirect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants