dependabot-nuget 0.255.0 → 0.256.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 843d1c24241a816293d79b8c8129060fb874d7957ae25875391b054407355d3d
|
4
|
+
data.tar.gz: 3756670ac86edadbdb566f6c68e7ad7dff488d6793e1e4e2ce2244b16bc61d2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb72d0af8838177538d9483043e6cbeb567da9dcb1129f81b71f589510c5cc3a0b6c456866c4e4245253d9f117ea12c90127626fab8830fdc1c406ae3bcc1007
|
7
|
+
data.tar.gz: c8277195b3c5e1b2a92214f8c96154fc4b2f33de22dfe9c742660c4df5d8801154b0a8b56b942b38012c2c333e53f4d2da7d16a6e07e97592e1c6af04fa1c42b
|
@@ -114,7 +114,7 @@ internal static class SdkProjectDiscovery
|
|
114
114
|
transitiveDependencies[dependency.Name] = existingDependency with
|
115
115
|
{
|
116
116
|
// Revisit this logic. We may want to return each dependency instead of merging them.
|
117
|
-
Version =
|
117
|
+
Version = NuGetVersion.Parse(existingDependency.Version!) > NuGetVersion.Parse(dependency.Version!)
|
118
118
|
? existingDependency.Version
|
119
119
|
: dependency.Version,
|
120
120
|
TargetFrameworks = existingDependency.TargetFrameworks is not null && dependency.TargetFrameworks is not null
|
data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.Project.cs
CHANGED
@@ -401,5 +401,50 @@ public partial class DiscoveryWorkerTests
|
|
401
401
|
Projects = []
|
402
402
|
});
|
403
403
|
}
|
404
|
+
|
405
|
+
[Fact]
|
406
|
+
public async Task DiscoverReportsTransitivePackageVersionsWithFourPartsForMultipleTargetFrameworks()
|
407
|
+
{
|
408
|
+
await TestDiscoveryAsync(
|
409
|
+
workspacePath: "",
|
410
|
+
files:
|
411
|
+
[
|
412
|
+
("myproj.csproj", """
|
413
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
414
|
+
<PropertyGroup>
|
415
|
+
<TargetFrameworks>netstandard2.0;net8.0</TargetFrameworks>
|
416
|
+
</PropertyGroup>
|
417
|
+
<ItemGroup>
|
418
|
+
<PackageReference Include="AWSSDK.S3" Version="3.7.307.29" />
|
419
|
+
</ItemGroup>
|
420
|
+
</Project>
|
421
|
+
""")
|
422
|
+
],
|
423
|
+
expectedResult: new()
|
424
|
+
{
|
425
|
+
FilePath = "",
|
426
|
+
Projects = [
|
427
|
+
new()
|
428
|
+
{
|
429
|
+
FilePath = "myproj.csproj",
|
430
|
+
Dependencies = [
|
431
|
+
new("Microsoft.NET.Sdk", null, DependencyType.MSBuildSdk),
|
432
|
+
new("AWSSDK.S3", "3.7.307.29", DependencyType.PackageReference, TargetFrameworks: ["net8.0", "netstandard2.0"], IsDirect: true),
|
433
|
+
new("AWSSDK.Core", "3.7.303.27", DependencyType.Unknown, TargetFrameworks: ["net8.0", "netstandard2.0"], IsTransitive: true),
|
434
|
+
new("Microsoft.Bcl.AsyncInterfaces", "1.1.0", DependencyType.Unknown, TargetFrameworks: ["netstandard2.0"], IsTransitive: true),
|
435
|
+
new("NETStandard.Library", "2.0.3", DependencyType.Unknown, TargetFrameworks: ["netstandard2.0"], IsTransitive: true),
|
436
|
+
new("System.Runtime.CompilerServices.Unsafe", "4.5.2", DependencyType.Unknown, TargetFrameworks: ["netstandard2.0"], IsTransitive: true),
|
437
|
+
new("System.Threading.Tasks.Extensions", "4.5.2", DependencyType.Unknown, TargetFrameworks: ["netstandard2.0"], IsTransitive: true),
|
438
|
+
],
|
439
|
+
Properties = [
|
440
|
+
new("TargetFrameworks", "netstandard2.0;net8.0", "myproj.csproj"),
|
441
|
+
],
|
442
|
+
TargetFrameworks = ["net8.0", "netstandard2.0"],
|
443
|
+
ReferencedProjectPaths = [],
|
444
|
+
}
|
445
|
+
],
|
446
|
+
}
|
447
|
+
);
|
448
|
+
}
|
404
449
|
}
|
405
450
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dependabot-nuget
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.256.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dependabot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-05-
|
11
|
+
date: 2024-05-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dependabot-common
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.256.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.256.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubyzip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -419,7 +419,7 @@ licenses:
|
|
419
419
|
- Nonstandard
|
420
420
|
metadata:
|
421
421
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
422
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
422
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.256.0
|
423
423
|
post_install_message:
|
424
424
|
rdoc_options: []
|
425
425
|
require_paths:
|