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

Unable to run the tool in the 2.1.2 version (1 of 12 pipelines failed) #442

Closed
patspaeth opened this issue Oct 25, 2021 · 5 comments
Closed

Comments

@patspaeth
Copy link
Contributor

patspaeth commented Oct 25, 2021

After updating the cyclonedx-dotnet tool to V2.1.2 (from v1.6.4) in 1 of 12 pipeline it failed because of:

Unhandled exception. System.Collections.Generic.KeyNotFoundException: The given key 'xxx.xxx.xxx.xxx' was not present in the dictionary.
   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   at CycloneDX.Program.OnExecuteAsync()
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.InvokeAsync(MethodInfo method, Object instance, Object[] arguments)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.OnExecute(ConventionContext context, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.Conventions.ExecuteMethodConvention.<>c__DisplayClass0_0.<<Apply>b__0>d.MoveNext()
--- End of stack trace from previous location ---
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync(String[] args, CancellationToken cancellationToken)
   at McMaster.Extensions.CommandLineUtils.CommandLineApplication.ExecuteAsync[TApp](CommandLineContext context, CancellationToken cancellationToken)
   at CycloneDX.Program.Main(String[] args) in /home/runner/work/cyclonedx-dotnet/cyclonedx-dotnet/CycloneDX/Program.cs:line 110
   at CycloneDX.Program.<Main>(String[] args)

I have executed cyclonedx with following parameters:

dotnet dotnet-CycloneDX --exclude-test-projects --exclude-dev -o SBOM -biop D:\a\1\s/artifacts -imp cycloneDX-metadata.xml PM.BE.sln

Maybe it has something similar to #437

@patspaeth
Copy link
Contributor Author

patspaeth commented Oct 26, 2021

I need to obfuscate the names. Please PM if more info is needed

@coderpatros
Copy link
Member

Are you able to make a minimal reproduction? Or perhaps identify the problematic csproj file and share it with me? Either on the CycloneDX Slack or to patrick.dwyer@owasp.org

@patspaeth
Copy link
Contributor Author

Yes, this is possible, thanks!

@AnFa1978
Copy link

AnFa1978 commented Nov 9, 2021

Problem is a cyclical dependency with NuGet package

@patspaeth
Copy link
Contributor Author

Closed because issue was solved by removing a cyclic dependency of nuget packages

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