Skip to content

Commit b9b6770

Browse files
committed
🐛 Fix misnamed parameter reference
Closes #52
1 parent b424f61 commit b9b6770

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

ModuleFast.psm1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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) {

ModuleFast.tests.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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' }

0 commit comments

Comments
 (0)