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

fix: Add additional log context when reference can not be found #662

Merged

Conversation

shawner18
Copy link
Contributor

I ran into an issue where the BOM was failing to generate due to dependency resolution issues. The current logging was not clear enough to identify the source of the issue, since we had many projects and many dependencies.

Original output
Dependency ([2.29.0, )) with version range ([2.29.0, )) did not resolve to a specific version.
Unable to locate valid bom ref for my.library [2.29.0, )

Enhanced output
Dependency (my.library) with version range ([2.29.0, )) referenced by (Name:my.other.library Version:1.18.26) in did not resolve to a specific version.
Unable to locate valid bom ref for my.library [2.29.0, ) referenced in (Name: my.other.library Version: 1.18.26)

@adcorduneanu
Copy link

Any fix for this one?

@mtsfoni
Copy link
Contributor

mtsfoni commented Sep 27, 2023

Hello shawner18,

I'd like to merge this, but the sign-off is missing.
Could you add it please?

See here: https://github.com/CycloneDX/cyclonedx-dotnet/pull/662/checks?check_run_id=11826932593

@shawner18 shawner18 requested a review from a team as a code owner September 27, 2023 20:12
@shawner18 shawner18 force-pushed the unable-to-locate-bom-ref-logging branch from ab07875 to fb008ba Compare September 27, 2023 20:28
@shawner18
Copy link
Contributor Author

Hello shawner18,

I'd like to merge this, but the sign-off is missing. Could you add it please?

See here: https://github.com/CycloneDX/cyclonedx-dotnet/pull/662/checks?check_run_id=11826932593

Done, sorry about that

@mtsfoni mtsfoni added this to the v2.9.0 milestone Sep 28, 2023
Copy link
Contributor

@mtsfoni mtsfoni left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, sorry :(
I just saw this now

CycloneDX/Services/ProjectAssetsFileService.cs Outdated Show resolved Hide resolved
@mtsfoni mtsfoni merged commit 02abd80 into CycloneDX:master Oct 1, 2023
10 checks passed
@shawner18 shawner18 deleted the unable-to-locate-bom-ref-logging branch October 2, 2023 13:32
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

Successfully merging this pull request may close these issues.

4 participants