dependabot-nuget 0.285.0 → 0.287.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/NuGetProjects/Directory.Build.props +5 -1
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.CommandLine/NuGet.CommandLine.csproj +1 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Configuration/NuGet.Configuration.csproj +1 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.LibraryModel/NuGet.LibraryModel.csproj +1 -0
- data/helpers/lib/NuGetUpdater/NuGetProjects/NuGet.Packaging/NuGet.Packaging.csproj +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/RunCommand.cs +8 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli/Commands/UpdateCommand.cs +7 -3
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Cli.Test/EntryPointTests.Update.cs +11 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/AnalyzeWorker.cs +2 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/CompatabilityChecker.cs +24 -5
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/NuGetContext.cs +15 -4
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Analyze/VersionFinder.cs +9 -38
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Discover/DiscoveryWorker.cs +10 -8
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/ExperimentsManager.cs +52 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/ProjectBuildFile.cs +15 -8
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/IAnalyzeWorker.cs +9 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/IDiscoveryWorker.cs +8 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/IUpdaterWorker.cs +9 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Run/RunWorker.cs +78 -61
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/PackageReferenceUpdater.cs +21 -10
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/PackagesConfigUpdater.cs +37 -5
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Updater/UpdaterWorker.cs +5 -3
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/MSBuildHelper.cs +5 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core/Utilities/PathHelper.cs +51 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Analyze/AnalyzeWorkerTests.cs +302 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.cs +269 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Run/RunWorkerTests.cs +577 -43
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Run/SerializationTests.cs +168 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestAnalyzeWorker.cs +37 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestDiscoveryWorker.cs +35 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestUpdaterWorker.cs +39 -0
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/PackagesConfigUpdaterTests.cs +104 -3
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTestBase.cs +51 -13
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.DirsProj.cs +4 -2
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackageReference.cs +62 -18
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackagesConfig.cs +1 -1
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Utilities/PathHelperTests.cs +14 -0
- data/helpers/lib/NuGetUpdater/global.json +1 -1
- data/lib/dependabot/nuget/file_updater.rb +8 -3
- data/lib/dependabot/nuget/native_helpers.rb +11 -12
- metadata +12 -6
- data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/DependencySolverEnvironment.cs +0 -12
data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackageReference.cs
CHANGED
@@ -56,11 +56,12 @@ public partial class UpdateWorkerTests
|
|
56
56
|
[Theory]
|
57
57
|
[InlineData(true)]
|
58
58
|
[InlineData(false)]
|
59
|
-
public async Task UpdateVersionChildElement_InProjectFile_ForPackageReferenceIncludeTheory(bool
|
59
|
+
public async Task UpdateVersionChildElement_InProjectFile_ForPackageReferenceIncludeTheory(bool useLegacyDependencySolver)
|
60
60
|
{
|
61
61
|
// update Some.Package from 9.0.1 to 13.0.1
|
62
|
-
|
62
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
63
63
|
await TestUpdateForProject("Some.Package", "9.0.1", "13.0.1",
|
64
|
+
experimentsManager: experimentsManager,
|
64
65
|
packages:
|
65
66
|
[
|
66
67
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "9.0.1", "net8.0"),
|
@@ -98,10 +99,11 @@ public partial class UpdateWorkerTests
|
|
98
99
|
[Theory]
|
99
100
|
[InlineData(true)]
|
100
101
|
[InlineData(false)]
|
101
|
-
public async Task PeerDependenciesAreUpdatedEvenWhenNotExplicit(bool
|
102
|
+
public async Task PeerDependenciesAreUpdatedEvenWhenNotExplicit(bool useLegacyDependencySolver)
|
102
103
|
{
|
103
|
-
|
104
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
104
105
|
await TestUpdateForProject("Some.Package", "1.0.0", "2.0.0",
|
106
|
+
experimentsManager: experimentsManager,
|
105
107
|
packages:
|
106
108
|
[
|
107
109
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "1.0.0", "net8.0", [(null, [("Transitive.Package", "[1.0.0]")])]),
|
@@ -160,7 +162,6 @@ public partial class UpdateWorkerTests
|
|
160
162
|
public async Task CallingResolveDependencyConflictsNew()
|
161
163
|
{
|
162
164
|
// update Microsoft.CodeAnalysis.Common from 4.9.2 to 4.10.0
|
163
|
-
using var _ = new DependencySolverEnvironment();
|
164
165
|
await TestUpdateForProject("Microsoft.CodeAnalysis.Common", "4.9.2", "4.10.0",
|
165
166
|
// initial
|
166
167
|
projectContents: $"""
|
@@ -310,7 +311,7 @@ public partial class UpdateWorkerTests
|
|
310
311
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "9.0.1", "net8.0"),
|
311
312
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "13.0.1", "net8.0"),
|
312
313
|
// necessary for the `net8.0-windows10.0.19041.0` TFM
|
313
|
-
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.
|
314
|
+
new("Microsoft.Windows.SDK.NET.Ref", "10.0.19041.54", Files:
|
314
315
|
[
|
315
316
|
("data/FrameworkList.xml", Encoding.UTF8.GetBytes("""
|
316
317
|
<FileList Name="Windows SDK .NET 6.0">
|
@@ -515,7 +516,7 @@ public partial class UpdateWorkerTests
|
|
515
516
|
//
|
516
517
|
// do the update
|
517
518
|
//
|
518
|
-
UpdaterWorker worker = new(new TestLogger());
|
519
|
+
UpdaterWorker worker = new(new ExperimentsManager(), new TestLogger());
|
519
520
|
await worker.RunAsync(tempDirectory.DirectoryPath, projectPath, "Some.Package", "1.0.0", "1.1.0", isTransitive: false);
|
520
521
|
|
521
522
|
//
|
@@ -598,11 +599,12 @@ public partial class UpdateWorkerTests
|
|
598
599
|
[Theory]
|
599
600
|
[InlineData(true)]
|
600
601
|
[InlineData(false)]
|
601
|
-
public async Task AddPackageReference_InProjectFile_ForTransientDependency(bool
|
602
|
+
public async Task AddPackageReference_InProjectFile_ForTransientDependency(bool useLegacyDependencySolver)
|
602
603
|
{
|
603
|
-
|
604
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
604
605
|
// add transient package Some.Transient.Dependency from 5.0.1 to 5.0.2
|
605
606
|
await TestUpdateForProject("Some.Transient.Dependency", "5.0.1", "5.0.2", isTransitive: true,
|
607
|
+
experimentsManager: experimentsManager,
|
606
608
|
packages:
|
607
609
|
[
|
608
610
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "3.1.3", "net8.0", [(null, [("Some.Transient.Dependency", "5.0.1")])]),
|
@@ -887,6 +889,45 @@ public partial class UpdateWorkerTests
|
|
887
889
|
);
|
888
890
|
}
|
889
891
|
|
892
|
+
[Fact]
|
893
|
+
public async Task UpdateVersionAttribute_InProjectFile_ForPackageReferenceUpdateWithSemicolon()
|
894
|
+
{
|
895
|
+
// update Some.Package from 9.0.1 to 13.0.1
|
896
|
+
await TestUpdateForProject("Some.Package", "9.0.1", "13.0.1",
|
897
|
+
packages:
|
898
|
+
[
|
899
|
+
MockNuGetPackage.CreateSimplePackage("Some.Package", "9.0.1", "net8.0"),
|
900
|
+
MockNuGetPackage.CreateSimplePackage("Some.Package2", "9.0.1", "net8.0"),
|
901
|
+
MockNuGetPackage.CreateSimplePackage("Some.Package", "13.0.1", "net8.0"),
|
902
|
+
MockNuGetPackage.CreateSimplePackage("Some.Package2", "13.0.1", "net8.0"),
|
903
|
+
],
|
904
|
+
// initial
|
905
|
+
projectContents: """
|
906
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
907
|
+
<PropertyGroup>
|
908
|
+
<TargetFramework>net8.0</TargetFramework>
|
909
|
+
</PropertyGroup>
|
910
|
+
|
911
|
+
<ItemGroup>
|
912
|
+
<PackageReference Include="Some.Package;Some.Package2" Version="9.0.1" />
|
913
|
+
</ItemGroup>
|
914
|
+
</Project>
|
915
|
+
""",
|
916
|
+
// expected
|
917
|
+
expectedProjectContents: """
|
918
|
+
<Project Sdk="Microsoft.NET.Sdk">
|
919
|
+
<PropertyGroup>
|
920
|
+
<TargetFramework>net8.0</TargetFramework>
|
921
|
+
</PropertyGroup>
|
922
|
+
|
923
|
+
<ItemGroup>
|
924
|
+
<PackageReference Include="Some.Package;Some.Package2" Version="13.0.1" />
|
925
|
+
</ItemGroup>
|
926
|
+
</Project>
|
927
|
+
"""
|
928
|
+
);
|
929
|
+
}
|
930
|
+
|
890
931
|
[Fact]
|
891
932
|
public async Task UpdateVersionAttribute_InDirectoryPackages_ForPackageVersion()
|
892
933
|
{
|
@@ -2979,7 +3020,6 @@ public partial class UpdateWorkerTests
|
|
2979
3020
|
public async Task UpdatingTransitiveDependencyWithNewSolverCanUpdateJustTheTopLevelPackage()
|
2980
3021
|
{
|
2981
3022
|
// we've been asked to explicitly update a transitive dependency, but we can solve it by updating the top-level package instead
|
2982
|
-
using var _ = new DependencySolverEnvironment();
|
2983
3023
|
await TestUpdateForProject("Transitive.Package", "1.0.0", "2.0.0",
|
2984
3024
|
isTransitive: true,
|
2985
3025
|
packages:
|
@@ -3017,13 +3057,14 @@ public partial class UpdateWorkerTests
|
|
3017
3057
|
[Theory]
|
3018
3058
|
[InlineData(true)]
|
3019
3059
|
[InlineData(false)]
|
3020
|
-
public async Task NoChange_IfThereAreIncoherentVersions(bool
|
3060
|
+
public async Task NoChange_IfThereAreIncoherentVersions(bool useLegacyDependencySolver)
|
3021
3061
|
{
|
3022
|
-
|
3062
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
3023
3063
|
|
3024
3064
|
// trying to update `Transitive.Dependency` to 1.1.0 would normally pull `Some.Package` from 1.0.0 to 1.1.0,
|
3025
3065
|
// but the TFM doesn't allow it
|
3026
3066
|
await TestNoChangeforProject("Transitive.Dependency", "1.0.0", "1.1.0",
|
3067
|
+
experimentsManager: experimentsManager,
|
3027
3068
|
packages:
|
3028
3069
|
[
|
3029
3070
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "1.0.0", "net7.0", [(null, [("Transitive.Dependency", "[1.0.0]")])]),
|
@@ -3143,12 +3184,13 @@ public partial class UpdateWorkerTests
|
|
3143
3184
|
[Theory]
|
3144
3185
|
[InlineData(true)]
|
3145
3186
|
[InlineData(false)]
|
3146
|
-
public async Task UnresolvablePropertyDoesNotStopOtherUpdates(bool
|
3187
|
+
public async Task UnresolvablePropertyDoesNotStopOtherUpdates(bool useLegacyDependencySolver)
|
3147
3188
|
{
|
3148
|
-
|
3189
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
3149
3190
|
|
3150
3191
|
// the property `$(SomeUnresolvableProperty)` cannot be resolved
|
3151
3192
|
await TestUpdateForProject("Some.Package", "7.0.1", "13.0.1",
|
3193
|
+
experimentsManager: experimentsManager,
|
3152
3194
|
packages:
|
3153
3195
|
[
|
3154
3196
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "7.0.1", "net8.0"),
|
@@ -3184,12 +3226,13 @@ public partial class UpdateWorkerTests
|
|
3184
3226
|
[Theory]
|
3185
3227
|
[InlineData(true)]
|
3186
3228
|
[InlineData(false)]
|
3187
|
-
public async Task ProjectWithWorkloadsShouldNotFail(bool
|
3229
|
+
public async Task ProjectWithWorkloadsShouldNotFail(bool useLegacyDependencySolver)
|
3188
3230
|
{
|
3189
|
-
|
3231
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
3190
3232
|
|
3191
3233
|
// the property `$(SomeUnresolvableProperty)` cannot be resolved
|
3192
3234
|
await TestUpdateForProject("Some.Package", "7.0.1", "13.0.1",
|
3235
|
+
experimentsManager: experimentsManager,
|
3193
3236
|
packages:
|
3194
3237
|
[
|
3195
3238
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "7.0.1", "net8.0"),
|
@@ -3224,12 +3267,13 @@ public partial class UpdateWorkerTests
|
|
3224
3267
|
[Theory]
|
3225
3268
|
[InlineData(true)]
|
3226
3269
|
[InlineData(false)]
|
3227
|
-
public async Task UpdatingPackageAlsoUpdatesAnythingWithADependencyOnTheUpdatedPackage(bool
|
3270
|
+
public async Task UpdatingPackageAlsoUpdatesAnythingWithADependencyOnTheUpdatedPackage(bool useLegacyDependencySolver)
|
3228
3271
|
{
|
3229
|
-
|
3272
|
+
var experimentsManager = new ExperimentsManager() { UseLegacyDependencySolver = useLegacyDependencySolver };
|
3230
3273
|
|
3231
3274
|
// updating Some.Package from 3.3.30 requires that Some.Package.Extensions also be updated
|
3232
3275
|
await TestUpdateForProject("Some.Package", "3.3.30", "3.4.3",
|
3276
|
+
experimentsManager: experimentsManager,
|
3233
3277
|
packages:
|
3234
3278
|
[
|
3235
3279
|
MockNuGetPackage.CreateSimplePackage("Some.Package", "3.3.30", "net8.0"),
|
data/helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/UpdateWorkerTests.PackagesConfig.cs
CHANGED
@@ -2288,7 +2288,7 @@ public partial class UpdateWorkerTests
|
|
2288
2288
|
await MockNuGetPackagesInDirectory(packages, Path.Combine(temporaryDirectory.DirectoryPath, "packages"));
|
2289
2289
|
var resultOutputPath = Path.Combine(temporaryDirectory.DirectoryPath, "result.json");
|
2290
2290
|
|
2291
|
-
var worker = new UpdaterWorker(new TestLogger());
|
2291
|
+
var worker = new UpdaterWorker(new ExperimentsManager(), new TestLogger());
|
2292
2292
|
await worker.RunAsync(temporaryDirectory.DirectoryPath, "project.csproj", "Some.Package", "1.0.0", "1.1.0", isTransitive: false, resultOutputPath: resultOutputPath);
|
2293
2293
|
|
2294
2294
|
var resultContents = await File.ReadAllTextAsync(resultOutputPath);
|
@@ -19,4 +19,18 @@ public class PathHelperTests
|
|
19
19
|
var actual = input.NormalizeUnixPathParts();
|
20
20
|
Assert.Equal(expected, actual);
|
21
21
|
}
|
22
|
+
|
23
|
+
[Fact]
|
24
|
+
public void VerifyResolveCaseInsensitivePath()
|
25
|
+
{
|
26
|
+
var temp = new TemporaryDirectory();
|
27
|
+
Directory.CreateDirectory(Path.Combine(temp.DirectoryPath, "src", "a"));
|
28
|
+
File.WriteAllText(Path.Combine(temp.DirectoryPath, "src", "a", "packages.config"), "");
|
29
|
+
|
30
|
+
var repoRootPath = Path.Combine(temp.DirectoryPath, "src");
|
31
|
+
|
32
|
+
var resolvedPath = PathHelper.ResolveCaseInsensitivePathInsideRepoRoot(Path.Combine(repoRootPath, "A", "PACKAGES.CONFIG"), repoRootPath);
|
33
|
+
|
34
|
+
Assert.Equal(Path.Combine(temp.DirectoryPath, "src", "a", "packages.config"), resolvedPath);
|
35
|
+
}
|
22
36
|
}
|
@@ -79,6 +79,11 @@ module Dependabot
|
|
79
79
|
|
80
80
|
private
|
81
81
|
|
82
|
+
sig { returns(String) }
|
83
|
+
def job_file_path
|
84
|
+
ENV.fetch("DEPENDABOT_JOB_PATH")
|
85
|
+
end
|
86
|
+
|
82
87
|
sig { params(dependency: Dependabot::Dependency).returns(T::Boolean) }
|
83
88
|
def try_update_projects(dependency)
|
84
89
|
update_ran = T.let(false, T::Boolean)
|
@@ -127,9 +132,9 @@ module Dependabot
|
|
127
132
|
|
128
133
|
sig { params(dependency: Dependency, proj_path: String).void }
|
129
134
|
def call_nuget_updater_tool(dependency, proj_path)
|
130
|
-
NativeHelpers.run_nuget_updater_tool(repo_root: T.must(repo_contents_path),
|
131
|
-
|
132
|
-
credentials: credentials)
|
135
|
+
NativeHelpers.run_nuget_updater_tool(job_path: job_file_path, repo_root: T.must(repo_contents_path),
|
136
|
+
proj_path: proj_path, dependency: dependency,
|
137
|
+
is_transitive: !dependency.top_level?, credentials: credentials)
|
133
138
|
|
134
139
|
# Tests need to track how many times we call the tooling updater to ensure we don't recurse needlessly
|
135
140
|
# Ideally we should find a way to not run this code in prod
|
@@ -165,14 +165,17 @@ module Dependabot
|
|
165
165
|
|
166
166
|
# rubocop:disable Metrics/MethodLength
|
167
167
|
sig do
|
168
|
-
params(repo_root: String, proj_path: String, dependency: Dependency,
|
168
|
+
params(job_path: String, repo_root: String, proj_path: String, dependency: Dependency,
|
169
169
|
is_transitive: T::Boolean, result_output_path: String).returns([String, String])
|
170
170
|
end
|
171
|
-
def self.get_nuget_updater_tool_command(repo_root:, proj_path:, dependency:, is_transitive:,
|
171
|
+
def self.get_nuget_updater_tool_command(job_path:, repo_root:, proj_path:, dependency:, is_transitive:,
|
172
|
+
result_output_path:)
|
172
173
|
exe_path = File.join(native_helpers_root, "NuGetUpdater", "NuGetUpdater.Cli")
|
173
174
|
command_parts = [
|
174
175
|
exe_path,
|
175
176
|
"update",
|
177
|
+
"--job-path",
|
178
|
+
job_path,
|
176
179
|
"--repo-root",
|
177
180
|
repo_root,
|
178
181
|
"--solution-or-project",
|
@@ -219,6 +222,7 @@ module Dependabot
|
|
219
222
|
|
220
223
|
sig do
|
221
224
|
params(
|
225
|
+
job_path: String,
|
222
226
|
repo_root: String,
|
223
227
|
proj_path: String,
|
224
228
|
dependency: Dependency,
|
@@ -226,23 +230,18 @@ module Dependabot
|
|
226
230
|
credentials: T::Array[Dependabot::Credential]
|
227
231
|
).void
|
228
232
|
end
|
229
|
-
def self.run_nuget_updater_tool(repo_root:, proj_path:, dependency:, is_transitive:, credentials:)
|
230
|
-
(command, fingerprint) = get_nuget_updater_tool_command(
|
231
|
-
|
233
|
+
def self.run_nuget_updater_tool(job_path:, repo_root:, proj_path:, dependency:, is_transitive:, credentials:)
|
234
|
+
(command, fingerprint) = get_nuget_updater_tool_command(job_path: job_path, repo_root: repo_root,
|
235
|
+
proj_path: proj_path, dependency: dependency,
|
236
|
+
is_transitive: is_transitive,
|
232
237
|
result_output_path: update_result_file_path)
|
233
238
|
|
234
239
|
puts "running NuGet updater:\n" + command
|
235
240
|
|
236
241
|
NuGetConfigCredentialHelpers.patch_nuget_config_for_action(credentials) do
|
237
|
-
# default to UseNewNugetPackageResolved _unless_ nuget_legacy_dependency_solver is enabled
|
238
|
-
env = {}
|
239
|
-
unless Dependabot::Experiments.enabled?(:nuget_legacy_dependency_solver)
|
240
|
-
env["UseNewNugetPackageResolver"] = "true"
|
241
|
-
end
|
242
242
|
output = SharedHelpers.run_shell_command(command,
|
243
243
|
allow_unsafe_shell_command: true,
|
244
|
-
fingerprint: fingerprint
|
245
|
-
env: env)
|
244
|
+
fingerprint: fingerprint)
|
246
245
|
puts output
|
247
246
|
|
248
247
|
result_contents = File.read(update_result_file_path)
|
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.287.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-11-
|
11
|
+
date: 2024-11-19 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.287.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.287.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubyzip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -313,7 +313,6 @@ files:
|
|
313
313
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Analyze/VersionFinderTests.cs
|
314
314
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Clone/CloneWorkerTests.cs
|
315
315
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Clone/TestGitCommandHandler.cs
|
316
|
-
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/DependencySolverEnvironment.cs
|
317
316
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTestBase.cs
|
318
317
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.DotNetToolsJson.cs
|
319
318
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Discover/DiscoveryWorkerTests.GlobalJson.cs
|
@@ -337,10 +336,13 @@ files:
|
|
337
336
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Run/UpdatedDependencyListTests.cs
|
338
337
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TemporaryDirectory.cs
|
339
338
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TemporaryEnvironment.cs
|
339
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestAnalyzeWorker.cs
|
340
340
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestBase.cs
|
341
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestDiscoveryWorker.cs
|
341
342
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestExtensions.cs
|
342
343
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestHttpServer.cs
|
343
344
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestLogger.cs
|
345
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/TestUpdaterWorker.cs
|
344
346
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/BindingRedirectsTests.cs
|
345
347
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/ExpectedUpdateOperationResult.cs
|
346
348
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core.Test/Update/PackagesConfigUpdaterTests.cs
|
@@ -391,6 +393,7 @@ files:
|
|
391
393
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/ErrorType.cs
|
392
394
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/EvaluationResult.cs
|
393
395
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/EvaluationResultType.cs
|
396
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/ExperimentsManager.cs
|
394
397
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/BuildFile.cs
|
395
398
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/DotNetToolsJsonBuildFile.cs
|
396
399
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/Files/GlobalJsonBuildFile.cs
|
@@ -401,6 +404,9 @@ files:
|
|
401
404
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/CompatabilityChecker.cs
|
402
405
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/FrameworkCompatibilityService.cs
|
403
406
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/FrameworkChecker/SupportedFrameworks.cs
|
407
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/IAnalyzeWorker.cs
|
408
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/IDiscoveryWorker.cs
|
409
|
+
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/IUpdaterWorker.cs
|
404
410
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/MissingFileException.cs
|
405
411
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/NativeResult.cs
|
406
412
|
- helpers/lib/NuGetUpdater/NuGetUpdater.Core/NuGetUpdater.Core.csproj
|
@@ -505,7 +511,7 @@ licenses:
|
|
505
511
|
- MIT
|
506
512
|
metadata:
|
507
513
|
bug_tracker_uri: https://github.com/dependabot/dependabot-core/issues
|
508
|
-
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.
|
514
|
+
changelog_uri: https://github.com/dependabot/dependabot-core/releases/tag/v0.287.0
|
509
515
|
post_install_message:
|
510
516
|
rdoc_options: []
|
511
517
|
require_paths:
|
@@ -1,12 +0,0 @@
|
|
1
|
-
namespace NuGetUpdater.Core.Test;
|
2
|
-
|
3
|
-
/// <summary>
|
4
|
-
/// Prepares the environment to use the new dependency solver.
|
5
|
-
/// </summary>
|
6
|
-
public class DependencySolverEnvironment : TemporaryEnvironment
|
7
|
-
{
|
8
|
-
public DependencySolverEnvironment(bool useDependencySolver = true)
|
9
|
-
: base([("UseNewNugetPackageResolver", useDependencySolver ? "true" : "false")])
|
10
|
-
{
|
11
|
-
}
|
12
|
-
}
|