File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -1816,11 +1816,11 @@ function Find-LocalModule {
1816
1816
1817
1817
# We can fast filter items that are below the lower bound, we dont need to read these manifests
1818
1818
if ($ModuleSpec.Min ) {
1819
- # HACK: Nuget does not correctly convert major.minor.build versions.
1819
+ # HACK: Nuget does not correctly convert major.minor.build versions
1820
1820
[version ]$originalBaseVersion = ($modulespec.Min.OriginalVersion -split ' -' )[0 ]
1821
1821
[Version ]$minVersion = $originalBaseVersion.Revision -eq -1 ? $originalBaseVersion : $ModuleSpec.Min.Version
1822
- if ($minVersion -lt $ModuleSpec .Min.OriginalVersion ) {
1823
- Write-Debug " ${ModuleSpec} : Skipping $folder - below the lower bound"
1822
+ if ($version -lt $minVersion ) {
1823
+ Write-Debug " ${ModuleSpec} : Skipping $folder - $version is below the lower bound of $minVersion "
1824
1824
return
1825
1825
}
1826
1826
}
Original file line number Diff line number Diff line change @@ -259,6 +259,14 @@ Describe 'Get-ModuleFastPlan' -Tag 'E2E' {
259
259
}
260
260
ModuleName = ' PrereleaseTest'
261
261
},
262
+ @ {
263
+ Spec = ' PrereleaseTest>=0.0.1-prerelease'
264
+ Check = {
265
+ $actual.Name | Should - Be ' PrereleaseTest'
266
+ $actual.ModuleVersion | Should - Be ' 0.0.2-prerelease'
267
+ }
268
+ ModuleName = ' PrereleaseTest'
269
+ },
262
270
@ {
263
271
Spec = ' PrereleaseTest:*'
264
272
ModuleName = ' PrereleaseTest'
You can’t perform that action at this time.
0 commit comments