Commit 169c576
🪲 [Fix]: Wildcard maximum versions no longer fail module processing (#446)
Module requirements can now use wildcard maximum versions such as `1.*`
without module builds or installations failing. Versions remain
constrained to the requested major or minor release line, while concrete
maximum versions keep their existing behavior.
## Fixed: wildcard maximum versions no longer fail module builds
Module manifests can now preserve wildcard maximum-version requirements
instead of rejecting them as invalid version values. A requirement such
as `MaximumVersion = '1.*'` remains usable during manifest generation.
## Fixed: wildcard maximum versions resolve to the correct release range
Module installation translates wildcard maximum versions into an
exclusive upper bound. For example, `MinimumVersion = '1.0.0'` and
`MaximumVersion = '1.*'` resolve to the range `[1.0.0,2.0.0)`, allowing
1.x releases without admitting 2.x releases. Unsupported wildcard
patterns are reported clearly.
---
<details>
<summary>Technical details</summary>
- Manifest processing now keeps wildcard maximum versions as strings and
only creates a numeric comparison bound for concrete versions.
- Installation version-spec conversion maps `1.*` to the exclusive upper
bound `2.0.0` and `1.2.*` to `1.3.0`; concrete maximum versions remain
inclusive.
- Source test fixtures now exercise a `ThreadJob` requirement with
`ModuleVersion = '1.0.0'` and `MaximumVersion = '1.*'`.
- The branch was synchronized with `main`; the repository's native
Zensical workflow remains unchanged and continues to build directly from
`zensical.toml`.
- Implementation plan progress: the scoped delivery bug in #444 is
completed by this pull request.
| Changed surface | Standards checked | Framework docs checked | Result
|
| --- | --- | --- | --- |
| `.github/actions/**` (PowerShell) | Naming, functions, action layout |
Process-PSModule action conventions | Aligned |
| `tests/**` (PowerShell) | Pester fixture conventions | Module test
repository layout | Aligned |
</details>
<details>
<summary>Relevant issues (or links)</summary>
- Fixes #444
</details>
---------
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>1 parent 1653be8 commit 169c576
4 files changed
Lines changed: 35 additions & 12 deletions
File tree
- .github/actions
- Build-PSModule/src/helpers/Build
- Install-PSModule/src/PSModule
- tests
- srcTestRepo/src/functions/public/PSModule
- srcWithManifestTestRepo/src/functions/public/PSModule
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
260 | 260 | | |
261 | 261 | | |
262 | 262 | | |
263 | | - | |
| 263 | + | |
| 264 | + | |
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
| |||
274 | 275 | | |
275 | 276 | | |
276 | 277 | | |
277 | | - | |
| 278 | + | |
278 | 279 | | |
279 | 280 | | |
280 | 281 | | |
281 | 282 | | |
282 | 283 | | |
283 | 284 | | |
284 | | - | |
| 285 | + | |
285 | 286 | | |
286 | 287 | | |
287 | | - | |
| 288 | + | |
288 | 289 | | |
289 | 290 | | |
290 | 291 | | |
| |||
294 | 295 | | |
295 | 296 | | |
296 | 297 | | |
297 | | - | |
| 298 | + | |
298 | 299 | | |
299 | 300 | | |
300 | 301 | | |
301 | 302 | | |
302 | 303 | | |
303 | 304 | | |
304 | 305 | | |
305 | | - | |
| 306 | + | |
306 | 307 | | |
307 | 308 | | |
308 | 309 | | |
| |||
Lines changed: 26 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
90 | 110 | | |
91 | 111 | | |
92 | 112 | | |
93 | 113 | | |
94 | | - | |
95 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
96 | 117 | | |
97 | 118 | | |
98 | 119 | | |
99 | 120 | | |
100 | | - | |
101 | | - | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
102 | 124 | | |
103 | 125 | | |
104 | 126 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments