File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -791,7 +791,7 @@ function Get-ModuleFastPlan {
791791 Update = $Update
792792 BestCandidate = ([ref ]$bestLocalCandidate )
793793 }
794- if ($DestinationOnly ) { $findLocalParams.Destination = $Destination }
794+ if ($DestinationOnly ) { $findLocalParams.ModulePaths = $Destination }
795795
796796 [ModuleFastInfo ]$localMatch = Find-LocalModule @findLocalParams $dependencySpec
797797 if ($localMatch ) {
Original file line number Diff line number Diff line change @@ -537,6 +537,10 @@ Describe 'Install-ModuleFast' -Tag 'E2E' {
537537 Install-ModuleFast @imfParams ' PreReleaseTest' - DestinationOnly - PassThru | Should - BeNullOrEmpty
538538 }
539539
540+ It ' -DestinationOnly works on modules with dependencies' {
541+ Install-ModuleFast @imfParams ' Az.Compute' - DestinationOnly - PassThru | Should - HaveCount 2
542+ }
543+
540544 It ' Errors trying to install prerelease over regular module' {
541545 Install-ModuleFast @imfParams ' PrereleaseTest=0.0.1'
542546 { Install-ModuleFast @imfParams ' PrereleaseTest=0.0.1-prerelease' }
You can’t perform that action at this time.
0 commit comments