Skip to content

Commit 5d23bb6

Browse files
committed
Fix merge conflicts/discrepancies
1 parent 6a9874d commit 5d23bb6

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

src/Cli/dotnet/commands/dotnet-tool/update/ToolUpdateLocalCommand.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,6 @@ public ToolUpdateLocalCommand(
5555
_toolManifestEditor = toolManifestEditor ?? new ToolManifestEditor();
5656
_localToolsResolverCache = localToolsResolverCache ?? new LocalToolsResolverCache();
5757

58-
_restoreActionConfig = new RestoreActionConfig(DisableParallel: parseResult.GetValue(ToolCommandRestorePassThroughOptions.DisableParallelOption),
59-
NoCache: parseResult.GetValue(ToolCommandRestorePassThroughOptions.NoCacheOption),
60-
IgnoreFailedSources: parseResult.GetValue(ToolCommandRestorePassThroughOptions.IgnoreFailedSourcesOption),
61-
Interactive: parseResult.GetValue(ToolCommandRestorePassThroughOptions.InteractiveRestoreOption));
62-
63-
_toolLocalPackageInstaller = new ToolInstallLocalInstaller(parseResult, toolPackageDownloader, _restoreActionConfig);
6458
_toolInstallLocalCommand = new Lazy<ToolInstallLocalCommand>(
6559
() => new ToolInstallLocalCommand(
6660
parseResult,

src/Tests/dotnet.Tests/CommandTests/ToolInstallGlobalOrToolPathCommandTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,10 +86,10 @@ public void WhenPassingRestoreActionConfigOptions()
8686
public void WhenPassingIgnoreFailedSourcesItShouldNotThrow()
8787
{
8888
_fileSystem.File.WriteAllText(Path.Combine(_temporaryDirectory, "nuget.config"), _nugetConfigWithInvalidSources);
89-
89+
var parseResult = Parser.Instance.Parse($"dotnet tool install -g {PackageId} --ignore-failed-sources");
9090
var toolInstallGlobalOrToolPathCommand = new ToolInstallGlobalOrToolPathCommand(
91-
_parseResult,
92-
_createToolPackageStoresAndDownloader,
91+
parseResult,
92+
_createToolPackageStoreDownloaderUninstaller,
9393
_createShellShimRepository,
9494
_environmentPathInstructionMock,
9595
_reporter);

0 commit comments

Comments
 (0)