Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GoReleaser issues (SBOM) #586

Open
jeeftor opened this issue Jan 31, 2025 · 0 comments
Open

GoReleaser issues (SBOM) #586

jeeftor opened this issue Jan 31, 2025 · 0 comments

Comments

@jeeftor
Copy link

jeeftor commented Jan 31, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant