Skip to content

GoReleaser issues (SBOM) #586

Open
Open
@jeeftor

Description

I'm trying to integrate cyclonedx-gomod as-per the docs with goreleaser for my project (https://github.com/jeeftor/license-manager)

I'm running into issue because my code is in

../cmd/license-manager

From the base of the project I can run:

cyclonedx-gomod app -json -output sbom.json -main cmd/license-manager           

And it works.

from ./dist

if I run:

cyclonedx-gomod app -json -output sbom.json -main ../cmd/license-manager

invalid options:

  • main: must be a subpath of "."

Would it be possible to have a --working-directory parameter which I think would solve the issue?

I'm assuming a more standard package layout with a main.go in the root directory wouldn't be an issue.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions