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

I just want to plug in SBOM for my project, use cyclonedx-gomd command why download cyclonedx-go first, how to solve this problem #386

Open
monkeylijin opened this issue Nov 24, 2023 · 3 comments

Comments

@monkeylijin
Copy link

image
@Dungeon1
Copy link

Same problem

@nscuro
Copy link
Member

nscuro commented Nov 28, 2023

why download cyclonedx-go first

cyclonedx-gomod is using the go mod why command to force Go to download all required modules to the local module cache. Other ways of performing this download (e.g. go mod download) potentially modify the go.sum file which is an undesired side-effect.

github.com/CycloneDX/cyclonedx-go in this command is more or less a placeholder. It may just as well be foobar. Go will not download the provided module. It will download all modules actually required by your project, and then check locally if github.com/CycloneDX/cyclonedx-go is among them.

If this step fails, then the Go command in general is likely not able to download modules in your environment.

Can you try adding the -verbose flag and see if there's any additional output?

@monkeylijin
Copy link
Author

Thanks for the reply, I used the private server for go.mod. The download error was caused by the dependency caused by the network failure. Is there any way to skip the download failure dependency and continue to execute the command?

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

3 participants