Executing mbt sbom-gen for such a project fails with the following error because gen/srv is generated by cds build within before-all.
[2024-03-04 12:27:54] INFO start to generate some file
[2024-03-04 12:27:54] INFO start to generate sbom for module ...
[2024-03-04 12:27:54] INFO executing the "npm install" command...
Error: generate sbom file failed: could not execute the "npm install" command: chdir /workspace/source/gen/srv: no such file or directory
[2024-03-04 12:27:54] ERROR generate sbom file failed: could not execute the "npm install" command: chdir /workspace/source/gen/srv: no such file or directory
Can mbt sbom-gen be updated to apply before-all steps before generating the sbom?
A typical CAP project relies on
before-all
to build the project. As an example, the following mta.yaml is generated bycds init
&cds add mta
Executing
mbt sbom-gen
for such a project fails with the following error because gen/srv is generated bycds build
within before-all.Can
mbt sbom-gen
be updated to applybefore-all
steps before generating the sbom?Thanks, Fabian