Support multiple requirement files according to envionments #273
-
Hi all, I have multiple requirement files in a folder. This is done because of different environments, e.g.: The base.txt has all dependencies which are needed in all environments. The other files (e.g. development.txt or production.txt) refer to the base.txt and add additional dependencies, e.g.
Could you advance cyclonedx-python to scan multiple requirement files at once?
The following command is an example to this issue: Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments
-
hello @manuel-sommer . In case you need an solution to merge multiple CycloneDX SBOM files into one SBOM you could have a look at one of the already existing SBOM tools in the CDX tool center maybe one of these can help? regarding
This syntax is not supported. did this information solve your problems/requests? |
Beta Was this translation helpful? Give feedback.
-
@madpah i suggest to stay with the current implementation. having the parser understand therefore i suggest to treat this very issue as a "request for documentation" rather then a "bug report" . any toughs? |
Beta Was this translation helpful? Give feedback.
-
Sounds like a good answer @jkowalleck. |
Beta Was this translation helpful? Give feedback.
-
Since we would not adopt This would open up a whole new story:
anyways - my (weak opinionated) current vote is: no - dont allow multiple input files as a feature release. speaking of which - we might want to convert this issue to a discussion. |
Beta Was this translation helpful? Give feedback.
-
@manuel-sommer given our comments above, we've moved this to a discussion at this time to open up to the wider world for input, comment etc. We're open to the idea being proposed, but feel this needs more rounding out and justification before we get on board. Please do come back with any further justifications / real-world scenarios you have that would fight for this idea. Thanks again for your input! |
Beta Was this translation helpful? Give feedback.
-
FYIL the upcoming v4 will have various kinds of supporting individual/multiple
|
Beta Was this translation helpful? Give feedback.
FYIL the upcoming v4 will have various kinds of supporting individual/multiple
requirements.txt
filesthis includes examples like
cat req1.txt req2.txt | cyclonedx-py requirements
cyclonedx-py requirements requirements-dev.txt
where the requirements-file internally uses-r deep concats