-
-
Notifications
You must be signed in to change notification settings - Fork 67
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
Feat: option to use an alternative python environment #475
Comments
Hi - was wondering if this feature is anywhere on the roadmap. We are trying to use this tool to generate an SBOM for our Python environment (since using the environment-based approach is the only way to include license information in the SBOM), and this issue is a bit of a blocker for us, since we do not want to include this tool and its dependencies in the SBOM we publish. |
It is labeled "help wanted" - meaning: it is not a core feature on the current roadmap, and we are open for pull requests and discussions. |
shall be implemented via #627 |
fixed by #605 |
This feature will be part of the next/upcoming major release. |
Caused by #435 (comment)
Problem
Current implementation of the
EnvironmentParser
does analysis on the python environment of the runtime of this very tool.There is no option to analyze a different python environment.
Example use case A:
It is a common use cases to globally install tools via
pipenv
, which creates a python environment dedicated to the tool. In such case, thecyclonedx-py -e
would see the env ofpipx
, which might not be the desired one.Solution
--env
None
~/projects/foo/.venv/
~/.local/share/virtualenvs/bar-SmGtsZ09
CycloneDxCmd
EnvironmentParser
README.md
and./docs/**
)pipx
pipx
venv
or something, and checks for correct detection of expected findings and no additional findings.The text was updated successfully, but these errors were encountered: