dependabot-nuget 0.391.0 → 0.392.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 +4 -4
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/Job.cs +0 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs +0 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTestBase.cs +14 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.Project.cs +1 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/MockNuGetPackage.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Run/SerializationTests.cs +1 -2
- data/helpers/lib/NuGetUpdater/global.json +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d1c860537bd6a457769abe727cca7534d55c740e24b64aa310187f0740c68ad2
|
|
4
|
+
data.tar.gz: e21573e419953d0fec2d53f55663f02f5dba6d1d27de9b706ba4382cc4e42294
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1d3cea77956ca9291560f34c25537828c19a1f567eb13bfa4fbf4818b15543108734fa5910105c132492ec04b59468388b7bfa869534bf6416665f9cc108f65d
|
|
7
|
+
data.tar.gz: a9c89cbd91626974ae21dab5897d8c62d14efe9ca9f5af54bfe900b723b91d6b45f57048345df16672dfafb069309a33683a793e5c33b7ca795c749494996e7b
|
|
@@ -43,7 +43,6 @@ public sealed record Job
|
|
|
43
43
|
public bool RepoPrivate { get; init; } = false;
|
|
44
44
|
public CommitOptions? CommitMessageOptions { get; init; } = null;
|
|
45
45
|
public ImmutableArray<Dictionary<string, object>>? CredentialsMetadata { get; init; } = null;
|
|
46
|
-
public int MaxUpdaterRunTime { get; init; } = 0;
|
|
47
46
|
public Cooldown? Cooldown { get; init; } = null;
|
|
48
47
|
|
|
49
48
|
public ImmutableArray<string> GetRawDirectories()
|
|
@@ -150,14 +150,22 @@ public class DiscoveryWorkerTestBase : TestBase
|
|
|
150
150
|
}).ToArray();
|
|
151
151
|
Assert.True(matchingDependencies.Length == 1, $"""
|
|
152
152
|
Unable to find 1 dependency matching; found {matchingDependencies.Length}:
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
IsTopLevel: {expectedDependency.IsTopLevel}
|
|
157
|
-
TargetFrameworks: {string.Join(", ", expectedDependency.TargetFrameworks ?? [])}
|
|
158
|
-
Found:{"\n\t"}{string.Join("\n\t", actualDependencies)}
|
|
153
|
+
{DependencyDisplayString(expectedDependency)}
|
|
154
|
+
Found:
|
|
155
|
+
{string.Join("\n ----\n", actualDependencies.Select(DependencyDisplayString))}
|
|
159
156
|
""");
|
|
160
157
|
}
|
|
158
|
+
|
|
159
|
+
static string DependencyDisplayString(Dependency d)
|
|
160
|
+
{
|
|
161
|
+
return $"""
|
|
162
|
+
Name: {d.Name}
|
|
163
|
+
Type: {d.Type}
|
|
164
|
+
Version: {d.Version}
|
|
165
|
+
IsTopLevel: {d.IsTopLevel}
|
|
166
|
+
TargetFrameworks: {string.Join(", ", d.TargetFrameworks ?? [])}
|
|
167
|
+
""";
|
|
168
|
+
}
|
|
161
169
|
}
|
|
162
170
|
|
|
163
171
|
protected static async Task<WorkspaceDiscoveryResult> RunDiscoveryAsync(TestFile[] files, Func<string, Task<WorkspaceDiscoveryResult>> action)
|
data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.Project.cs
CHANGED
|
@@ -73,6 +73,7 @@ public partial class DiscoveryWorkerTests
|
|
|
73
73
|
[
|
|
74
74
|
MockNuGetPackage.CreateSimplePackage("Package.A", "1.2.3", "net8.0"),
|
|
75
75
|
MockNuGetPackage.CreateSimplePackage("Package.B", "4.5.6", "net8.0"),
|
|
76
|
+
MockNuGetPackage.WellKnownHostPackage("Microsoft.NETCore.App", "net8.0"),
|
|
76
77
|
],
|
|
77
78
|
workspacePath: "",
|
|
78
79
|
files: [
|
|
@@ -409,7 +409,7 @@ namespace NuGetUpdater.Core.Test
|
|
|
409
409
|
|
|
410
410
|
public static MockNuGetPackage WellKnownHostPackage(string packageName, string targetFramework, (string Path, byte[] Content)[]? files = null)
|
|
411
411
|
{
|
|
412
|
-
string key = $"{packageName}/{targetFramework}";
|
|
412
|
+
string key = $"{packageName}.Host/{targetFramework}";
|
|
413
413
|
if (!WellKnownPackages.ContainsKey(key))
|
|
414
414
|
{
|
|
415
415
|
// for the current SDK, the file `Microsoft.NETCoreSdk.BundledVersions.props` contains the version of the
|
|
@@ -438,7 +438,7 @@ namespace NuGetUpdater.Core.Test
|
|
|
438
438
|
}
|
|
439
439
|
|
|
440
440
|
string expectedVersion = matchingAppHostPack.Attribute("AppHostPackVersion")!.Value;
|
|
441
|
-
|
|
441
|
+
WellKnownPackages[key] = new(
|
|
442
442
|
$"{packageName}.Host.{expectedRid}",
|
|
443
443
|
expectedVersion,
|
|
444
444
|
Files: files
|
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.
|
|
4
|
+
version: 0.392.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.
|
|
18
|
+
version: 0.392.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.
|
|
25
|
+
version: 0.392.0
|
|
26
26
|
- !ruby/object:Gem::Dependency
|
|
27
27
|
name: debug
|
|
28
28
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -582,7 +582,7 @@ licenses:
|
|
|
582
582
|
- MIT
|
|
583
583
|
metadata:
|
|
584
584
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
|
585
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
|
585
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.392.0
|
|
586
586
|
rdoc_options: []
|
|
587
587
|
require_paths:
|
|
588
588
|
- lib
|