dependabot-nuget 0.250.0 → 0.251.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: 144460a4e43c2169e3526841828a5a3baa717f83e0becb327f128cb971a3deb8
4
- data.tar.gz: 1fdb2e2284043c4c27eb536dbbc0eaef6d180a59c61e6c32c2a74f4aadfb9a85
3
+ metadata.gz: de6f0b0f318838044e74746451b7c9b006d1c7d02a5f0eb9dd435be71e531324
4
+ data.tar.gz: a79152fa48bdead211a0116e40a8e2583fbb780c7a84ae9e11c5a61fed9cd243
5
5
  SHA512:
6
- metadata.gz: 1d1c53febbc055e0eeecbff13cb9101c17f0b989b039caa719baf2cf6a69e4fc43f8babbe7e533cf75baeb97dd3d58e7344a1ede890410a4c5046ab7951fd2f3
7
- data.tar.gz: 285ed503fcefca8cd3ed0d731f59543c76eca79b0da7c738ae1bef523521697c5ee05fcc0c2d8425d86e8c657d1b579464822f359699ed67ca01077d27eb5972
6
+ metadata.gz: dbb569b37e215ec868f66117759bacc09d3de783add60b2274f261d81a1b55ef0a4fffa77c172db4183490dc0fc390551377ba7a404ddd8e1bf1a4d836f43986
7
+ data.tar.gz: be749544dda69391923d1843c254619cf9f2f9afcc9d5de8a58fc7cf1388352084a2de6f2989d002b9fdd4e5d56c55563cbf6a477a3696757522678ddee73599
@@ -264,7 +264,8 @@ internal static partial class MSBuildHelper
264
264
  var evaluationResult = GetEvaluatedValue(packageVersion, propertyInfo);
265
265
  if (evaluationResult.ResultType != EvaluationResultType.Success)
266
266
  {
267
- throw new InvalidDataException(evaluationResult.ErrorMessage);
267
+ // if we can't resolve the package version, don't report the dependency
268
+ continue;
268
269
  }
269
270
 
270
271
  packageVersion = evaluationResult.EvaluatedValue.TrimStart('[', '(').TrimEnd(']', ')');
@@ -2528,5 +2528,35 @@ public partial class UpdateWorkerTests
2528
2528
  """
2529
2529
  );
2530
2530
  }
2531
+
2532
+ [Fact]
2533
+ public async Task UnresolvablePropertyDoesNotStopOtherUpdates()
2534
+ {
2535
+ // the property `$(MauiVersion)` cannot be resolved
2536
+ await TestUpdateForProject("Newtonsoft.Json", "7.0.1", "13.0.1",
2537
+ projectContents: """
2538
+ <Project Sdk="Microsoft.NET.Sdk">
2539
+ <PropertyGroup>
2540
+ <TargetFramework>net8.0</TargetFramework>
2541
+ </PropertyGroup>
2542
+ <ItemGroup>
2543
+ <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
2544
+ <PackageReference Include="Newtonsoft.Json" Version="7.0.1" />
2545
+ </ItemGroup>
2546
+ </Project>
2547
+ """,
2548
+ expectedProjectContents: """
2549
+ <Project Sdk="Microsoft.NET.Sdk">
2550
+ <PropertyGroup>
2551
+ <TargetFramework>net8.0</TargetFramework>
2552
+ </PropertyGroup>
2553
+ <ItemGroup>
2554
+ <PackageReference Include="Microsoft.Maui.Controls" Version="$(MauiVersion)" />
2555
+ <PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
2556
+ </ItemGroup>
2557
+ </Project>
2558
+ """
2559
+ );
2560
+ }
2531
2561
  }
2532
2562
  }
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.250.0
4
+ version: 0.251.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-04-02 00:00:00.000000000 Z
11
+ date: 2024-04-05 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.250.0
19
+ version: 0.251.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.250.0
26
+ version: 0.251.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubyzip
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -385,7 +385,7 @@ licenses:
385
385
  - Nonstandard
386
386
  metadata:
387
387
  bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
388
- changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.250.0
388
+ changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.251.0
389
389
  post_install_message:
390
390
  rdoc_options: []
391
391
  require_paths: