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
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/"
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
The text was updated successfully, but these errors were encountered:
USAGE
cyclonedx-gomod app [FLAGS...] [MODULE_PATH]
...
The -main flag should be used to specify the path to the application's main package.
It must point to a directory within MODULE_PATH. If not set, MODULE_PATH is assumed.
In your case, because controller is its own separate module, you need to point MODULE_PATH to it, like so:
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
The text was updated successfully, but these errors were encountered: