-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Move from LibGit2Sharp v0.24.0 to v0.23.1 #1316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a bunch of uneeded changes that VS probably automatically did to the app.config and csproj files, which makes this reeeeally hard to cherry-pick properly. These changes should probably go in so that VS doesn't keep doing them, but they should be done in a separate cosmetic PR in a commit marked as such so that they're isolated and don't pollute the history.
src/DesignTimeStyleHelper/App.config
Outdated
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.VisualStudio.Validation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" /> | ||
</dependentAssembly> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes shouldn't be in this PR
src/GitHub.App/GitHub.App.csproj
Outdated
@@ -16,6 +16,8 @@ | |||
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These changes shouldn't be here
@@ -15,6 +15,8 @@ | |||
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
<None Include="packages.config" /> | ||
<None Include="packages.config"> | ||
<SubType>Designer</SubType> | ||
</None> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -15,6 +15,8 @@ | |||
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -17,6 +17,8 @@ | |||
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -17,6 +17,8 @@ | |||
<CodeAnalysisRuleSet>..\common\GitHubVS.ruleset</CodeAnalysisRuleSet> | |||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors> | |||
<CodeAnalysisIgnoreGeneratedCode>true</CodeAnalysisIgnoreGeneratedCode> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
@@ -12,6 +12,8 @@ | |||
<VsixType>v3</VsixType> | |||
<IsProductComponent>false</IsProductComponent> | |||
<ExtensionInstallationFolder>GitHub\GitHub</ExtensionInstallationFolder> | |||
<NuGetPackageImportStamp> | |||
</NuGetPackageImportStamp> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
src/GitHub.VisualStudio/app.config
Outdated
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.VisualStudio.Validation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" /> | ||
</dependentAssembly> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
test/UnitTests/app.config
Outdated
<dependentAssembly> | ||
<assemblyIdentity name="Microsoft.VisualStudio.Validation" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> | ||
<bindingRedirect oldVersion="0.0.0.0-14.0.0.0" newVersion="14.0.0.0" /> | ||
</dependentAssembly> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above
LibGit2Sharp v2.4.0 sometimes throws AccessViolationException on RetrieveStatus.
caaa967
to
23721f6
Compare
Yeah, existing things are totally ok. Not having the changes to junk in the commit for the fix is mainly for two things:
|
@shana I've split the stuff that NuGet wanted to add into a separate "cosmetic" PR: #1325. In the past I've tried to keep the diff nice and clean. In this case I wasn't sure what to do, because it feels like I've been fighting NuGet a lot recently. Hopefully this cosmetic PR will make future changes less of a pain. |
We upgraded from LibGit2Sharp v0.22 to v0.24 in PR #1248. This upgrade was in order to fix #1244 (the
Failed to mmap
issue).Unfortunately, LibGit2Sharp v2.4.0 sometimes throws an
AccessViolationException
whenRetrieveStatus
is called (see #1315). This appears to still be an issue in v0.25.0-preview-0033.Moving to LibGit2Sharp v2.3.1 because it appears to be more stable than v0.24 and fixes both #1244 and #1315.
NOTE: I've left in some of the
dependentAssembly
andNuGetPackageImportStamp
junk that NuGet likes to add. Hopefully this will make the next time we update NuGet packages cleaner. We don't package theApp.config
files, so this shouldn't make any difference to the extension.Workaround for: #1306