You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A typical CAP project relies on before-all to build the project. As an example, the following mta.yaml is generated by cds init & cds add mta
---
_schema-version: '3.1'ID: bookshopversion: 1.0.0description: "A simple CAP project."parameters:
enable-parallel-deployments: truebuild-parameters:
before-all:
- builder: customcommands:
- npx cds build --productionmodules:
- name: bookshop-srvtype: nodejspath: gen/srvparameters:
buildpack: nodejs_buildpackbuild-parameters:
builder: npmprovides:
- name: srv-api # required by consumers of CAP services (e.g. approuter)properties:
srv-url: ${default-url}requires: []
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?
Thanks, Fabian
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: