Skip to content

Commit b25e555

Browse files
committed
Updated packages.
1 parent 31896b9 commit b25e555

File tree

4 files changed

+11
-9
lines changed

4 files changed

+11
-9
lines changed

Directory.Build.props

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
<RootNamespace>GitReader</RootNamespace>
1919
<ProduceReferenceAssembly>false</ProduceReferenceAssembly>
2020
<GenerateDocumentationFile>true</GenerateDocumentationFile>
21-
<NoWarn>$(NoWarn);CS1570;CS1591;CA1416;CS8981</NoWarn>
21+
<NoWarn>$(NoWarn);CS1570;CS1591;CA1416;CS8981;NETSDK1215</NoWarn>
2222

2323
<Product>GitReader</Product>
2424
<Trademark>GitReader</Trademark>
@@ -52,7 +52,7 @@
5252
</PropertyGroup>
5353

5454
<ItemGroup>
55-
<PackageReference Include="RelaxVersioner" Version="3.2.60" PrivateAssets="All" />
55+
<PackageReference Include="RelaxVersioner" Version="3.10.0" PrivateAssets="All" />
5656
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.3" PrivateAssets="All" />
5757
</ItemGroup>
5858

FSharp.GitReader/FSharp.GitReader.fsproj

+2
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
<PropertyGroup>
44
<TargetFrameworks>net461;net462;net48;net481;netstandard2.0;netstandard2.1;netcoreapp2.0;netcoreapp2.1;netcoreapp2.2;netcoreapp3.0;netcoreapp3.1;net5.0;net6.0;net7.0;net8.0</TargetFrameworks>
55
<IsPackable>true</IsPackable>
6+
<Nullable>disable</Nullable>
7+
<NoWarn>$(NoWarn);NU1903</NoWarn>
68
</PropertyGroup>
79

810
<ItemGroup>

GitReader.Core/Structures/StructuredRepositoryFacade.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ public static async Task<Commit> GetCommitAsync(
239239

240240
var commit = await RepositoryAccessor.ReadCommitAsync(
241241
repository, commitReference.Hash, ct);
242-
return new(rwr, commit.Value);
242+
return new(rwr, commit!.Value);
243243
}
244244

245245
public static async Task<Commit> GetCommitAsync(
@@ -251,7 +251,7 @@ public static async Task<Commit> GetCommitAsync(
251251

252252
var commit = await RepositoryAccessor.ReadCommitAsync(
253253
repository, hash, ct);
254-
return new(rwr, commit.Value);
254+
return new(rwr, commit!.Value);
255255
}
256256

257257
public static async Task<Annotation> GetAnnotationAsync(
@@ -267,7 +267,7 @@ public static async Task<Annotation> GetAnnotationAsync(
267267
var t = await RepositoryAccessor.ReadTagAsync(
268268
repository, tagHash, ct);
269269

270-
annotation = new(t.Value.Tagger, t.Value.Message);
270+
annotation = new(t!.Value.Tagger, t!.Value.Message);
271271
Interlocked.CompareExchange(ref tag.annotation, annotation, null);
272272
}
273273
else

GitReader.Tests/Primitive/RepositoryTests.cs

+4-4
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ public async Task GetCurrentHead()
5151
RepositoryTestsSetUp.GetBasePath("test1"));
5252

5353
var headref = await repository.GetCurrentHeadReferenceAsync();
54-
var commit = await repository.GetCommitAsync(headref.Value);
54+
var commit = await repository.GetCommitAsync(headref!.Value);
5555

5656
await Verifier.Verify(commit);
5757
}
@@ -148,7 +148,7 @@ public async Task GetTree()
148148
var commit = await repository.GetCommitAsync(
149149
"1205dc34ce48bda28fc543daaf9525a9bb6e6d10");
150150

151-
var tree = await repository.GetTreeAsync(commit.Value.TreeRoot);
151+
var tree = await repository.GetTreeAsync(commit!.Value.TreeRoot);
152152

153153
await Verifier.Verify(tree);
154154
}
@@ -162,7 +162,7 @@ public async Task OpenBlob()
162162
var commit = await repository.GetCommitAsync(
163163
"1205dc34ce48bda28fc543daaf9525a9bb6e6d10");
164164

165-
var tree = await repository.GetTreeAsync(commit.Value.TreeRoot);
165+
var tree = await repository.GetTreeAsync(commit!.Value.TreeRoot);
166166

167167
var blobHash = tree.Children.First(child => child.Name == "build-nupkg.bat").Hash;
168168

@@ -181,7 +181,7 @@ public async Task OpenSubModule()
181181
var commit = await repository.GetCommitAsync(
182182
"37021d38937107d5782f063f78f502f2da14c751");
183183

184-
var tree = await repository.GetTreeAsync(commit.Value.TreeRoot);
184+
var tree = await repository.GetTreeAsync(commit!.Value.TreeRoot);
185185

186186
var subModule = tree.Children.First(child => child.Name == "GitReader");
187187

0 commit comments

Comments
 (0)