dependabot-nuget 0.371.0 → 0.372.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d7916c7661919bee90276b975fe46847c6289fa45de9cc7ebe2d1dc12799685
4
- data.tar.gz: c05e7678dab3e9baa32a75a38f535dca02fd692c5562e7898756c2ffc2acbfee
3
+ metadata.gz: a058182c9ce909abc8398d444a3cba984f43528a7655fd5ee96cc8c607bbfd76
4
+ data.tar.gz: ffd8f02946da91739938e89ca13e3beb4e6b3ef157bb23083251df98cf45930f
5
5
  SHA512:
6
- metadata.gz: fc5b580e70c49c5a2b0c13887cac6140be5e4bf642e4d6c4e3f43455b57cc0599c76cb6170f75ef949f76aab23fdefa66488f16cb948aa15fa7871c593ebe935
7
- data.tar.gz: 9301c2888824bac12674380195add8516a43b247205329d2fb8524c9e2bfa5e03734c0ddd30afe91acf0f7fb3851181563b5c70b81a3e72ff4dbc70d17eb5292
6
+ metadata.gz: 4d9d90b837aa4ebd014a46c1dc0a89ae29689f30bbe84fc49c16deec4c260625e263aa731f100d0ef909ad2da00a48c131e9086393866f54e83e48e6678a77f8
7
+ data.tar.gz: d8c27b9ff9c1837c191ce89ae005e3071f5fc5cd09d76d8c1e0ecc3ea1bd511ed1cd544bac6bdd0ea17aef43dc49747b2c87cc8cbe0f3e3645f6977582ec3394
@@ -4,6 +4,7 @@
4
4
  <CentralPackageTransitivePinningEnabled>true</CentralPackageTransitivePinningEnabled>
5
5
  <NoWarn>$(NoWarn);NU1701</NoWarn>
6
6
  <Nullable>enable</Nullable>
7
+ <TreatWarningsAsErrors>true</TreatWarningsAsErrors>
7
8
  <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
8
9
  </PropertyGroup>
9
10
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  <PropertyGroup>
4
4
  <TargetFramework>$(CommonTargetFramework)</TargetFramework>
5
+ <NoWarn>$(NoWarn);NU1510</NoWarn>
5
6
  </PropertyGroup>
6
7
 
7
8
  <ItemGroup>
@@ -10,6 +10,8 @@
10
10
  <NoWarn>$(NoWarn);SYSLIB0014</NoWarn><!-- obsolete -->
11
11
  <NuGetSourceLocation>$(MSBuildThisFileDirectory)..\..\NuGet.Client</NuGetSourceLocation>
12
12
  <SharedDirectory>$(NuGetSourceLocation)\build\Shared</SharedDirectory>
13
+ <NoWarn>$(NoWarn);CA1416</NoWarn><!-- platform compatibility in vendored NuGet.Client code -->
14
+ <NoWarn>$(NoWarn);CS0436</NoWarn><!-- type conflicts with imported types in vendored NuGet.Client code -->
13
15
  <Version>6.8.0</Version>
14
16
  </PropertyGroup>
15
17
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  <PropertyGroup>
4
4
  <TargetFramework>$(CommonTargetFramework)</TargetFramework>
5
- <NoWarn>$(NoWarn);CS1591</NoWarn>
5
+ <NoWarn>$(NoWarn);CS1591;NU1510</NoWarn>
6
6
  </PropertyGroup>
7
7
 
8
8
  <ItemGroup>
@@ -2,7 +2,7 @@
2
2
 
3
3
  <PropertyGroup>
4
4
  <TargetFramework>$(CommonTargetFramework)</TargetFramework>
5
- <NoWarn>$(NoWarn);CS1591;CS1580;CS1574;CS1573;RS0041</NoWarn>
5
+ <NoWarn>$(NoWarn);CS1591;CS1580;CS1574;CS1573;RS0041;NU1510</NoWarn>
6
6
  </PropertyGroup>
7
7
 
8
8
  <ItemGroup>
@@ -1,4 +1,4 @@
1
- using System.Text.Json;
1
+ using System.Text.Json;
2
2
  using System.Text.Json.Serialization;
3
3
 
4
4
  namespace NuGetUpdater.Core.Run;
@@ -145,7 +145,7 @@ public class CloneWorkerTests
145
145
  var cloneWorker = new CloneWorker("JOB-ID", testApiHandler, testGitCommandHandler, new TestLogger());
146
146
  using var testDirectory = new TemporaryDirectory();
147
147
  var jobFilePath = Path.Combine(testDirectory.DirectoryPath, "job.json");
148
- await File.WriteAllTextAsync(jobFilePath, "not json");
148
+ await File.WriteAllTextAsync(jobFilePath, "not json", TestContext.Current.CancellationToken);
149
149
 
150
150
  // act
151
151
  var result = await cloneWorker.RunAsync(new FileInfo(jobFilePath), new DirectoryInfo(testDirectory.DirectoryPath));
@@ -183,7 +183,7 @@ public class CloneWorkerTests
183
183
  ]
184
184
  }
185
185
  }
186
- """);
186
+ """, TestContext.Current.CancellationToken);
187
187
 
188
188
  // act
189
189
  var result = await cloneWorker.RunAsync(new FileInfo(jobFilePath), new DirectoryInfo(testDirectory.DirectoryPath));
@@ -12,8 +12,8 @@ using Xunit;
12
12
 
13
13
  namespace NuGetUpdater.Core.Test.Run;
14
14
 
15
- using TestFile = (string Path, string Content);
16
15
  using RawTestFile = (string Path, byte[] Content);
16
+ using TestFile = (string Path, string Content);
17
17
 
18
18
  public class EndToEndTests
19
19
  {
@@ -1,6 +1,7 @@
1
+ using NuGetUpdater.Core.Run;
1
2
  using NuGetUpdater.Core.Run.ApiModel;
2
3
  using NuGetUpdater.Core.Run.UpdateHandlers;
3
- using NuGetUpdater.Core.Run;
4
+
4
5
  using Xunit;
5
6
 
6
7
  namespace NuGetUpdater.Core.Test.Run.UpdateHandlers;
@@ -1,6 +1,7 @@
1
+ using NuGetUpdater.Core.Run;
1
2
  using NuGetUpdater.Core.Run.ApiModel;
2
3
  using NuGetUpdater.Core.Run.UpdateHandlers;
3
- using NuGetUpdater.Core.Run;
4
+
4
5
  using Xunit;
5
6
 
6
7
  namespace NuGetUpdater.Core.Test.Run.UpdateHandlers;
@@ -186,7 +186,7 @@ public class UpdatedDependencyListTests
186
186
  {
187
187
  var fullFilePath = Path.Join(tempDir.DirectoryPath, testFile);
188
188
  Directory.CreateDirectory(Path.GetDirectoryName(fullFilePath)!);
189
- await File.WriteAllTextAsync(fullFilePath, "");
189
+ await File.WriteAllTextAsync(fullFilePath, "", TestContext.Current.CancellationToken);
190
190
  }
191
191
  var discovery = new WorkspaceDiscoveryResult()
192
192
  {
@@ -1,7 +1,7 @@
1
1
  using System.Text.Json;
2
2
 
3
- using NuGetUpdater.Core.Run.ApiModel;
4
3
  using NuGetUpdater.Core.Run;
4
+ using NuGetUpdater.Core.Run.ApiModel;
5
5
 
6
6
  using Xunit;
7
7
 
@@ -2,8 +2,9 @@ using System.Net;
2
2
  using System.Net.Sockets;
3
3
  using System.Text;
4
4
 
5
- using NuGet.Versioning;
6
5
  using NuGet;
6
+ using NuGet.Versioning;
7
+
7
8
  using NuGetUpdater.Core.Utilities;
8
9
 
9
10
  namespace NuGetUpdater.Core.Test
@@ -43,14 +43,14 @@ public class SpecialFilePatcherTests
43
43
  // act
44
44
  using (var patcher = new SpecialImportsConditionPatcher(projectPath))
45
45
  {
46
- var actualPatchedContent = await File.ReadAllTextAsync(projectPath);
46
+ var actualPatchedContent = await File.ReadAllTextAsync(projectPath, TestContext.Current.CancellationToken);
47
47
 
48
48
  // assert
49
49
  Assert.Equal(expectedPatchedContent.Replace("\r", ""), actualPatchedContent.Replace("\r", ""));
50
50
  }
51
51
 
52
52
  // assert again
53
- var restoredContent = await File.ReadAllTextAsync(projectPath);
53
+ var restoredContent = await File.ReadAllTextAsync(projectPath, TestContext.Current.CancellationToken);
54
54
  Assert.Equal(restoredContent.Replace("\r", ""), fileContent.Replace("\r", ""));
55
55
  }
56
56
 
@@ -1,8 +1,13 @@
1
+ using System.Runtime.CompilerServices;
2
+
1
3
  using Xunit;
2
4
 
3
5
  public class LinuxOnlyFactAttribute : FactAttribute
4
6
  {
5
- public LinuxOnlyFactAttribute()
7
+ public LinuxOnlyFactAttribute(
8
+ [CallerFilePath] string? sourceFilePath = null,
9
+ [CallerLineNumber] int sourceLineNumber = -1)
10
+ : base(sourceFilePath, sourceLineNumber)
6
11
  {
7
12
  if (!OperatingSystem.IsLinux())
8
13
  {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dependabot-nuget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.371.0
4
+ version: 0.372.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dependabot
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 0.371.0
18
+ version: 0.372.0
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 0.371.0
25
+ version: 0.372.0
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: debug
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -554,7 +554,7 @@ licenses:
554
554
  - MIT
555
555
  metadata:
556
556
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
557
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.371.0
557
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.372.0
558
558
  rdoc_options: []
559
559
  require_paths:
560
560
  - lib