Skip to content

Commit

Permalink
use new nuget dependency solver by default (#10671)
Browse files Browse the repository at this point in the history
Co-authored-by: AbdulFattaah Popoola <[email protected]>
  • Loading branch information
brettfo and abdulapopoola authored Sep 30, 2024
1 parent 4b677da commit aa68330
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nuget/lib/dependabot/nuget/native_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -242,8 +242,11 @@ def self.run_nuget_updater_tool(repo_root:, proj_path:, dependency:, is_transiti
puts "running NuGet updater:\n" + command

NuGetConfigCredentialHelpers.patch_nuget_config_for_action(credentials) do
# default to UseNewNugetPackageResolved _unless_ nuget_legacy_dependency_solver is enabled
env = {}
env["UseNewNugetPackageResolver"] = "true" if Dependabot::Experiments.enabled?(:nuget_dependency_solver)
unless Dependabot::Experiments.enabled?(:nuget_legacy_dependency_solver)
env["UseNewNugetPackageResolver"] = "true"
end
output = SharedHelpers.run_shell_command(command,
allow_unsafe_shell_command: true,
fingerprint: fingerprint,
Expand Down

0 comments on commit aa68330

Please sign in to comment.