Commit 29a06e2
committed
versions: Requested versions eligible only if they were already present
The versions.MeetingConstraints method tried to permit selection of
any prereleases explicitly requested by an exact version constraint, but
it didn't also check that those prereleases were included in the original
set.
That worked okay for positive exact version constraints, like
"1.0.0-beta.1", but was incorrect for negative ones like "! 1.0.0-beta.1"
which still get counted as "requested" in certain cases but that should
not cause them to then be included in the overall result set.
Now we'll filter the list of requested versions first by membership of
the "exact" set, so that the requested status of a version can only
return versions that would've been eligible for inclusion in the original
unfiltered set.1 parent 0273b66 commit 29a06e2
3 files changed
+14
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
| 52 | + | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
385 | 393 | | |
386 | 394 | | |
387 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
231 | 236 | | |
232 | 237 | | |
233 | 238 | | |
| |||
0 commit comments