I added cmd/path for cert-manager(controller, cainjector, and webhook) and otel when creating the json file with command "cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main cmd/controller/"
It gives error "11:13AM ERR error="failed to load package: main module (github.com/cert-manager/cert-manager) does not contain package github.com/cert-manager/cert-manager/cmd/controller"
But, when I ran it inside "cmd/controller/", it generates files.
Why it is not generating the file with cmd/path?
It should generate the json with this command "cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main cmd/controller/"
Instead of, "cmd/controller/ && cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main . "
FYI, It is working with cmd/path with otherpackages though, like ingress-nginx, argo-cd, argo-events, cloudnative-pg. Only not working with otel and cert_manager
I added cmd/path for cert-manager(controller, cainjector, and webhook) and otel when creating the json file with command "cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main cmd/controller/"
It gives error "11:13AM ERR error="failed to load package: main module (github.com/cert-manager/cert-manager) does not contain package github.com/cert-manager/cert-manager/cmd/controller"
But, when I ran it inside "cmd/controller/", it generates files.
Why it is not generating the file with cmd/path?
It should generate the json with this command "cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main cmd/controller/"
Instead of, "cmd/controller/ && cyclonedx-gomod app -assert-licenses -json -licenses -output-version 1.4 -output base.json -main . "
FYI, It is working with cmd/path with otherpackages though, like ingress-nginx, argo-cd, argo-events, cloudnative-pg. Only not working with otel and cert_manager