dependabot-nuget 0.255.0 → 0.257.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: 1feb135ca2ebd58b0c7c96df96c8e3ad30b9f0dccd17b58c99d5670fb3ebf57b
4
- data.tar.gz: 55e7d7d46b36738f198057ef6c83ea3f194d25623a65d6e719bf1fc5a6f44eb5
3
+ metadata.gz: 49b70e0b9626d157c462ca23016ba1895c80f33cdf8fc16d831b041b9681eba0
4
+ data.tar.gz: b7c36d26347029a8095d71b75f7038982c39e2c2e0fe0a4c883e2fbb6dce481a
5
5
  SHA512:
6
- metadata.gz: 13a3eae5d94249eba9a08cbe55c4c36ca3116881550e76a518e789bc7fe7e8ee6d13fcf910a25de365a2e00af96ce586a7f169a52cc1a6b2fc5fbd594d4b8ba5
7
- data.tar.gz: 318e0d0cb22917a6198cd0c0821dba4a2456c23a4378f9387d645c205886cac7078119983772806313427e3ceaf52ec72f64f11f134ddb010b2e59e0bf8a2a36
6
+ metadata.gz: e2a68947d4fa90c7f3864997e23d4019d9360e4448655d3ec91749df124a302a949b7ebd010b3faaff930f93b00d6722193fda25a9dd8a3feefc56506fac7d0b
7
+ data.tar.gz: 64b02f3fd2412e3aff8c1e8d2b9c3bfdcfd01a43e5eb755fc760ff9ff1a98267a466e3657ce4dfd36a32dd25791316cedaa6a465735965a0f200529dabfc41c7
@@ -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 = SemanticVersion.Parse(existingDependency.Version!) > SemanticVersion.Parse(dependency.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
@@ -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.255.0
4
+ version: 0.257.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-03 00:00:00.000000000 Z
11
+ date: 2024-05-13 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.255.0
19
+ version: 0.257.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.255.0
26
+ version: 0.257.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubyzip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -416,10 +416,10 @@ files:
416
416
  - lib/dependabot/nuget/version.rb
417
417
  homepage: https://github.com/dependabot/dependabot-core
418
418
  licenses:
419
- - Nonstandard
419
+ - MIT
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.255.0
422
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.257.0
423
423
  post_install_message:
424
424
  rdoc_options: []
425
425
  require_paths: