Skip to content

cmd/cert_manager and otel: Failed to load package: main module does not contain package #618

Description

@dshukla2510

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 . "

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions