dependabot-nuget 0.279.0 → 0.281.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/AnalyzeCommand.cs +4 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/DiscoverCommand.cs +4 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/FrameworkCheckCommand.cs +4 -7
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/RunCommand.cs +4 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/UpdateCommand.cs +3 -5
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Analyze.cs +7 -3
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Discover.cs +6 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.FrameworkCheck.cs +0 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Run.cs +1 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs +3 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs +17 -10
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/CompatabilityChecker.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/DependencyFinder.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/NuGetContext.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/VersionFinder.cs +5 -5
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/DirectoryPackagesPropsDiscovery.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/DiscoveryWorker.cs +10 -4
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/DotNetToolsJsonDiscovery.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/GlobalJsonDiscovery.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/PackagesConfigDiscovery.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/SdkProjectDiscovery.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/ErrorType.cs +2 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/DotNetToolsJsonBuildFile.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/GlobalJsonBuildFile.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/JsonBuildFile.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/CompatabilityChecker.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/NativeResult.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/JobErrorBase.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/UpdateNotPossible.cs +6 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/RunWorker.cs +9 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/UpdateNotPossibleException.cs +11 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectManager.cs +5 -5
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/DotNetToolsJsonUpdater.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/GlobalJsonUpdater.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/LockFileUpdater.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/PackagesConfigUpdater.cs +4 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/SdkPackageUpdater.cs +12 -12
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdaterWorker.cs +29 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ConsoleLogger.cs +9 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs +14 -16
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ILogger.cs +6 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs +22 -10
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/NuGetHelper.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Analyze/AnalyzeWorkerTestBase.cs +6 -10
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Analyze/AnalyzeWorkerTests.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Analyze/CompatibilityCheckerTests.cs +7 -7
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTestBase.cs +6 -9
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/DotNetToolsJsonBuildFileTests.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Files/GlobalJsonBuildFileTests.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/FrameworkChecker/CompatibilityCheckerFacts.cs +4 -4
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Run/RunWorkerTests.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestLogger.cs +11 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/ExpectedUpdateOperationResult.cs +8 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTestBase.cs +15 -12
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.DirsProj.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Mixed.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackagesConfig.cs +223 -9
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.Sdk.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/MSBuildHelperTests.cs +16 -16
- data/lib/dependabot/nuget/file_updater.rb +1 -0
- data/lib/dependabot/nuget/native_helpers.rb +15 -19
- metadata +13 -8
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/Logger.cs +0 -21
@@ -483,7 +483,7 @@ public class MSBuildHelperTests : TestBase
|
|
483
483
|
{
|
484
484
|
new Dependency("Some.Other.Package", "1.2.0", DependencyType.PackageReference),
|
485
485
|
};
|
486
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflicts(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
486
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflicts(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
487
487
|
Assert.NotNull(resolvedDependencies);
|
488
488
|
Assert.Equal(2, resolvedDependencies.Length);
|
489
489
|
Assert.Equal("Some.Package", resolvedDependencies[0].Name);
|
@@ -533,7 +533,7 @@ public class MSBuildHelperTests : TestBase
|
|
533
533
|
new Dependency("CS-Script.Core", "2.0.0", DependencyType.PackageReference),
|
534
534
|
};
|
535
535
|
|
536
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
536
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
537
537
|
Assert.NotNull(resolvedDependencies);
|
538
538
|
Assert.Equal(3, resolvedDependencies.Length);
|
539
539
|
Assert.Equal("CS-Script.Core", resolvedDependencies[0].Name);
|
@@ -578,7 +578,7 @@ public class MSBuildHelperTests : TestBase
|
|
578
578
|
new Dependency("Microsoft.Bcl.AsyncInterfaces", "1.1.1", DependencyType.Unknown)
|
579
579
|
};
|
580
580
|
|
581
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
581
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
582
582
|
Assert.NotNull(resolvedDependencies);
|
583
583
|
Assert.Single(resolvedDependencies);
|
584
584
|
Assert.Equal("Azure.Core", resolvedDependencies[0].Name);
|
@@ -621,7 +621,7 @@ public class MSBuildHelperTests : TestBase
|
|
621
621
|
new Dependency("Newtonsoft.Json", "13.0.1", DependencyType.Unknown)
|
622
622
|
};
|
623
623
|
|
624
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
624
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
625
625
|
Assert.NotNull(resolvedDependencies);
|
626
626
|
Assert.Equal(2, resolvedDependencies.Length);
|
627
627
|
Assert.Equal("Newtonsoft.Json.Bson", resolvedDependencies[0].Name);
|
@@ -671,7 +671,7 @@ public class MSBuildHelperTests : TestBase
|
|
671
671
|
new Dependency("Microsoft.CodeAnalysis.Common", "4.10.0", DependencyType.PackageReference)
|
672
672
|
};
|
673
673
|
|
674
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
674
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
675
675
|
Assert.NotNull(resolvedDependencies);
|
676
676
|
Assert.Equal(3, resolvedDependencies.Length);
|
677
677
|
Assert.Equal("Microsoft.CodeAnalysis.Compilers", resolvedDependencies[0].Name);
|
@@ -723,7 +723,7 @@ public class MSBuildHelperTests : TestBase
|
|
723
723
|
new Dependency("Microsoft.CodeAnalysis.Common", "4.10.0", DependencyType.PackageReference)
|
724
724
|
};
|
725
725
|
|
726
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
726
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
727
727
|
Assert.NotNull(resolvedDependencies);
|
728
728
|
Assert.Equal(4, resolvedDependencies.Length);
|
729
729
|
Assert.Equal("Microsoft.CodeAnalysis.Compilers", resolvedDependencies[0].Name);
|
@@ -779,7 +779,7 @@ public class MSBuildHelperTests : TestBase
|
|
779
779
|
new Dependency("Newtonsoft.Json", "13.0.1", DependencyType.Unknown)
|
780
780
|
};
|
781
781
|
|
782
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
782
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
783
783
|
Assert.NotNull(resolvedDependencies);
|
784
784
|
Assert.Equal(5, resolvedDependencies.Length);
|
785
785
|
Assert.Equal("Microsoft.CodeAnalysis.Compilers", resolvedDependencies[0].Name);
|
@@ -838,7 +838,7 @@ public class MSBuildHelperTests : TestBase
|
|
838
838
|
new Dependency("Buildalyzer", "7.0.1", DependencyType.PackageReference),
|
839
839
|
};
|
840
840
|
|
841
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
841
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
842
842
|
Assert.NotNull(resolvedDependencies);
|
843
843
|
Assert.Equal(4, resolvedDependencies.Length);
|
844
844
|
Assert.Equal("Buildalyzer", resolvedDependencies[0].Name);
|
@@ -895,7 +895,7 @@ public class MSBuildHelperTests : TestBase
|
|
895
895
|
new Dependency("Azure.Core", "1.22.0", DependencyType.PackageReference)
|
896
896
|
};
|
897
897
|
|
898
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
898
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
899
899
|
Assert.NotNull(resolvedDependencies);
|
900
900
|
Assert.Equal(4, resolvedDependencies.Length);
|
901
901
|
Assert.Equal("System.Collections.Immutable", resolvedDependencies[0].Name);
|
@@ -952,7 +952,7 @@ public class MSBuildHelperTests : TestBase
|
|
952
952
|
new Dependency("Azure.Core", "1.22.0", DependencyType.PackageReference)
|
953
953
|
};
|
954
954
|
|
955
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
955
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
956
956
|
Assert.NotNull(resolvedDependencies);
|
957
957
|
Assert.Equal(5, resolvedDependencies.Length);
|
958
958
|
Assert.Equal("System.Collections.Immutable", resolvedDependencies[0].Name);
|
@@ -1007,7 +1007,7 @@ public class MSBuildHelperTests : TestBase
|
|
1007
1007
|
new Dependency("AutoMapper.Collection", "10.0.0", DependencyType.PackageReference)
|
1008
1008
|
};
|
1009
1009
|
|
1010
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1010
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1011
1011
|
Assert.NotNull(resolvedDependencies);
|
1012
1012
|
Assert.Equal(3, resolvedDependencies.Length);
|
1013
1013
|
Assert.Equal("AutoMapper.Extensions.Microsoft.DependencyInjection", resolvedDependencies[0].Name);
|
@@ -1054,7 +1054,7 @@ public class MSBuildHelperTests : TestBase
|
|
1054
1054
|
new Dependency("Microsoft.Extensions.Caching.Memory", "8.0.0", DependencyType.PackageReference)
|
1055
1055
|
};
|
1056
1056
|
|
1057
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1057
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1058
1058
|
Assert.NotNull(resolvedDependencies);
|
1059
1059
|
Assert.Equal(2, resolvedDependencies.Length);
|
1060
1060
|
Assert.Equal("Microsoft.EntityFrameworkCore", resolvedDependencies[0].Name);
|
@@ -1104,7 +1104,7 @@ public class MSBuildHelperTests : TestBase
|
|
1104
1104
|
new Dependency("Microsoft.EntityFrameworkCore.Analyzers", "8.0.0", DependencyType.PackageReference)
|
1105
1105
|
};
|
1106
1106
|
|
1107
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1107
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1108
1108
|
Assert.NotNull(resolvedDependencies);
|
1109
1109
|
Assert.Equal(4, resolvedDependencies.Length);
|
1110
1110
|
Assert.Equal("Microsoft.EntityFrameworkCore.Design", resolvedDependencies[0].Name);
|
@@ -1156,7 +1156,7 @@ public class MSBuildHelperTests : TestBase
|
|
1156
1156
|
new Dependency("Microsoft.EntityFrameworkCore.Analyzers", "8.0.0", DependencyType.PackageReference)
|
1157
1157
|
};
|
1158
1158
|
|
1159
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1159
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1160
1160
|
Assert.NotNull(resolvedDependencies);
|
1161
1161
|
Assert.Equal(3, resolvedDependencies.Length);
|
1162
1162
|
Assert.Equal("Microsoft.EntityFrameworkCore.Design", resolvedDependencies[0].Name);
|
@@ -1208,7 +1208,7 @@ public class MSBuildHelperTests : TestBase
|
|
1208
1208
|
new Dependency("System.Collections.Immutable", "8.0.0", DependencyType.PackageReference),
|
1209
1209
|
};
|
1210
1210
|
|
1211
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1211
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1212
1212
|
Assert.NotNull(resolvedDependencies);
|
1213
1213
|
Assert.Equal(4, resolvedDependencies.Length);
|
1214
1214
|
Assert.Equal("System.Collections.Immutable", resolvedDependencies[0].Name);
|
@@ -1260,7 +1260,7 @@ public class MSBuildHelperTests : TestBase
|
|
1260
1260
|
new Dependency("System.Collections.Immutable", "8.0.0", DependencyType.PackageReference),
|
1261
1261
|
};
|
1262
1262
|
|
1263
|
-
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new
|
1263
|
+
var resolvedDependencies = await MSBuildHelper.ResolveDependencyConflictsNew(repoRoot.FullName, projectPath, "net8.0", dependencies, update, new TestLogger());
|
1264
1264
|
Assert.NotNull(resolvedDependencies);
|
1265
1265
|
Assert.Equal(3, resolvedDependencies.Length);
|
1266
1266
|
Assert.Equal("Microsoft.CodeAnalysis.CSharp.Workspaces", resolvedDependencies[0].Name);
|
@@ -20,6 +20,7 @@ module Dependabot
|
|
20
20
|
def self.updated_files_regex
|
21
21
|
[
|
22
22
|
/.*\.([a-z]{2})?proj$/, # Matches files with any extension like .csproj, .vbproj, etc., in any directory
|
23
|
+
/packages\.lock\.json/, # Matches packages.lock.json in any directory
|
23
24
|
/packages\.config$/i, # Matches packages.config in any directory
|
24
25
|
/app\.config$/i, # Matches app.config in any directory
|
25
26
|
/web\.config$/i, # Matches web.config in any directory
|
@@ -28,8 +28,7 @@ module Dependabot
|
|
28
28
|
"--project-tfms",
|
29
29
|
*project_tfms,
|
30
30
|
"--package-tfms",
|
31
|
-
*package_tfms
|
32
|
-
"--verbose"
|
31
|
+
*package_tfms
|
33
32
|
]
|
34
33
|
command = Shellwords.join(command_parts)
|
35
34
|
|
@@ -39,8 +38,7 @@ module Dependabot
|
|
39
38
|
"--project-tfms",
|
40
39
|
"<project-tfms>",
|
41
40
|
"--package-tfms",
|
42
|
-
"<package-tfms>"
|
43
|
-
"--verbose"
|
41
|
+
"<package-tfms>"
|
44
42
|
].join(" ")
|
45
43
|
|
46
44
|
puts "running NuGet updater:\n" + command
|
@@ -68,8 +66,7 @@ module Dependabot
|
|
68
66
|
"--workspace",
|
69
67
|
workspace_path,
|
70
68
|
"--output",
|
71
|
-
output_path
|
72
|
-
"--verbose"
|
69
|
+
output_path
|
73
70
|
].compact
|
74
71
|
|
75
72
|
command = Shellwords.join(command_parts)
|
@@ -82,8 +79,7 @@ module Dependabot
|
|
82
79
|
"--workspace",
|
83
80
|
"<path-to-workspace>",
|
84
81
|
"--output",
|
85
|
-
"<path-to-output>"
|
86
|
-
"--verbose"
|
82
|
+
"<path-to-output>"
|
87
83
|
].compact.join(" ")
|
88
84
|
|
89
85
|
[command, fingerprint]
|
@@ -127,8 +123,7 @@ module Dependabot
|
|
127
123
|
"--dependency-file-path",
|
128
124
|
dependency_file_path,
|
129
125
|
"--analysis-folder-path",
|
130
|
-
analysis_folder_path
|
131
|
-
"--verbose"
|
126
|
+
analysis_folder_path
|
132
127
|
].compact
|
133
128
|
|
134
129
|
command = Shellwords.join(command_parts)
|
@@ -141,8 +136,7 @@ module Dependabot
|
|
141
136
|
"--dependency-file-path",
|
142
137
|
"<dependency-file-path>",
|
143
138
|
"--analysis-folder-path",
|
144
|
-
"<analysis_folder_path>"
|
145
|
-
"--verbose"
|
139
|
+
"<analysis_folder_path>"
|
146
140
|
].compact.join(" ")
|
147
141
|
|
148
142
|
[command, fingerprint]
|
@@ -191,8 +185,7 @@ module Dependabot
|
|
191
185
|
dependency.previous_version,
|
192
186
|
is_transitive ? "--transitive" : nil,
|
193
187
|
"--result-output-path",
|
194
|
-
result_output_path
|
195
|
-
"--verbose"
|
188
|
+
result_output_path
|
196
189
|
].compact
|
197
190
|
|
198
191
|
command = Shellwords.join(command_parts)
|
@@ -212,8 +205,7 @@ module Dependabot
|
|
212
205
|
"<previous-version>",
|
213
206
|
is_transitive ? "--transitive" : nil,
|
214
207
|
"--result-output-path",
|
215
|
-
"<result-output-path>"
|
216
|
-
"--verbose"
|
208
|
+
"<result-output-path>"
|
217
209
|
].compact.join(" ")
|
218
210
|
|
219
211
|
[command, fingerprint]
|
@@ -263,14 +255,18 @@ module Dependabot
|
|
263
255
|
sig { params(json: T::Hash[String, T.untyped]).void }
|
264
256
|
def self.ensure_no_errors(json)
|
265
257
|
error_type = T.let(json.fetch("ErrorType", nil), T.nilable(String))
|
266
|
-
error_details =
|
258
|
+
error_details = json.fetch("ErrorDetails", nil)
|
267
259
|
case error_type
|
268
260
|
when "None", nil
|
269
261
|
# no issue
|
270
262
|
when "AuthenticationFailure"
|
271
|
-
raise PrivateSourceAuthenticationFailure, error_details
|
263
|
+
raise PrivateSourceAuthenticationFailure, T.let(error_details, T.nilable(String))
|
272
264
|
when "MissingFile"
|
273
|
-
raise DependencyFileNotFound, error_details
|
265
|
+
raise DependencyFileNotFound, T.let(error_details, T.nilable(String))
|
266
|
+
when "UpdateNotPossible"
|
267
|
+
raise UpdateNotPossible, T.let(error_details, T::Array[String])
|
268
|
+
when "Unknown"
|
269
|
+
raise DependabotError, T.let(error_details, String)
|
274
270
|
else
|
275
271
|
raise "Unexpected error type from native tool: #{error_type}: #{error_details}"
|
276
272
|
end
|
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.281.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-10-
|
11
|
+
date: 2024-10-17 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.281.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.281.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubyzip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -176,14 +176,14 @@ dependencies:
|
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: 0.8.
|
179
|
+
version: 0.8.5
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: 0.8.
|
186
|
+
version: 0.8.5
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: simplecov
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -336,6 +336,8 @@ files:
|
|
336
336
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestBase.cs
|
337
337
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestExtensions.cs
|
338
338
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestHttpServer.cs
|
339
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestLogger.cs
|
340
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/ExpectedUpdateOperationResult.cs
|
339
341
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/PackagesConfigUpdaterTests.cs
|
340
342
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTestBase.cs
|
341
343
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.DirsProj.cs
|
@@ -410,11 +412,13 @@ files:
|
|
410
412
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/ReportedRequirement.cs
|
411
413
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/RequirementSource.cs
|
412
414
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/UnknownError.cs
|
415
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/UpdateNotPossible.cs
|
413
416
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/ApiModel/UpdatedDependencyList.cs
|
414
417
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/HttpApiHandler.cs
|
415
418
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/IApiHandler.cs
|
416
419
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/RunResult.cs
|
417
420
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/RunWorker.cs
|
421
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/UpdateNotPossibleException.cs
|
418
422
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectManager.cs
|
419
423
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/BindingRedirectResolver.cs
|
420
424
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/ConfigurationFile.cs
|
@@ -428,11 +432,12 @@ files:
|
|
428
432
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdaterWorker.cs
|
429
433
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/WebApplicationTargetsConditionPatcher.cs
|
430
434
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/XmlFilePreAndPostProcessor.cs
|
435
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ConsoleLogger.cs
|
431
436
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/DependencyConflictResolver.cs
|
432
437
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/HashSetExtensions.cs
|
438
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ILogger.cs
|
433
439
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/ImmutableArrayExtensions.cs
|
434
440
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/JsonHelper.cs
|
435
|
-
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/Logger.cs
|
436
441
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs
|
437
442
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/NuGetHelper.cs
|
438
443
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/PathHelper.cs
|
@@ -491,7 +496,7 @@ licenses:
|
|
491
496
|
- MIT
|
492
497
|
metadata:
|
493
498
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
494
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
499
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.281.0
|
495
500
|
post_install_message:
|
496
501
|
rdoc_options: []
|
497
502
|
require_paths:
|
@@ -1,21 +0,0 @@
|
|
1
|
-
namespace NuGetUpdater.Core;
|
2
|
-
|
3
|
-
public sealed class Logger
|
4
|
-
{
|
5
|
-
public bool Verbose { get; set; }
|
6
|
-
private readonly TextWriter _logOutput;
|
7
|
-
|
8
|
-
public Logger(bool verbose)
|
9
|
-
{
|
10
|
-
Verbose = verbose;
|
11
|
-
_logOutput = Console.Out;
|
12
|
-
}
|
13
|
-
|
14
|
-
public void Log(string message)
|
15
|
-
{
|
16
|
-
if (Verbose)
|
17
|
-
{
|
18
|
-
_logOutput.WriteLine(message);
|
19
|
-
}
|
20
|
-
}
|
21
|
-
}
|