Skip to content

Merge pull request #18 from OctopusDeploy/robe/include-net6 - #20

Open
zentron wants to merge 6 commits into
octopus/masterfrom
robe/net6
Open

zentron wants to merge 6 commits into
octopus/masterfrom
robe/net6

Conversation

@zentron

@zentron zentron commented Nov 2, 2025

Copy link
Copy Markdown

Re-introduce .net6 while we still have Calamari running in .net6

zentron and others added 6 commits July 18, 2025 22:02
…uilding unknown exception types

The exception constructors in GitErrorsToLibGit2SharpExceptions make use of the error category by passing it through to the NativeException(string message, GitErrorCategory category) constructor which adds ("libgit2.category", category) to Data on System.Exception.

We were calling new LibGit2SharpException(m, c), but this was resolving to the string formatting constructor on LibGit2SharpException, because it does not have a constructor that takes a category. This runs a string format, so if the errorMessage contained any curly braces, that constructor would throw an System.FormatException.

This has been changed to just use the message constructor (with no format arguments), and will drop the error code (which is always Unknown anyway).
Re-introduce .net6 while we still have Calamari running in .net6
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.

1 participant