Commit 28f2de2
fix(cli): resolve CLI services via module-relative path so packaged module loads (#2873)
* fix(cli): resolve CLI services via module-relative path so packaged module loads
The Wheels Snapshots workflow has failed on every develop push since #2861.
The build / "Smoke Test Installed Distribution" job dies at Phase 3 (wheels new):
could not find component or class with name [cli.lucli.services.ArgSpec]
Root cause: #2861 (ArgSpec migration) and #2363 (TestRunner) instantiated CLI
services via the absolute FQN `new cli.lucli.services.X()`. That path only
resolves against the source-tree layout `cli/lucli/services/`. The module
tarball is built with `tar -C cli/lucli .` (release.yml), which flattens the
module root so services live at `<module-root>/services/` — there is no
`cli/lucli/` tree and no `cli.lucli` mapping in the package. The 17 sibling
services already use the module-relative `new services.X()`, which resolves
relative to Module.cfc's own directory in BOTH the source tree and the package.
fast-test passes because it runs from source (both forms resolve); only the
smoke test, which runs the installed distribution, caught the regression.
Convert all 8 absolute references (7x ArgSpec, 1x TestRunner) plus the ArgSpec
docblock example to the relative form. TestRunner was a latent twin — no CI
path exercises `wheels test` against the installed module yet.
Verified locally by building the module tarball from this worktree and from
pre-fix HEAD, then running `wheels new` against each in an isolated LUCLI_HOME:
pre-fix reproduces the exact error; the fix scaffolds the app successfully.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
* docs(cli): add changelog entry for packaged-module service-path fix
Documents the regression fixed in 67ab18f under [Unreleased] ### Fixed,
per wheels-bot Reviewer A.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Signed-off-by: Peter Amiri <peter@alurium.com>
---------
Signed-off-by: Peter Amiri <peter@alurium.com>
Co-authored-by: Claude Opus 4.8 <noreply@anthropic.com>1 parent 84d88be commit 28f2de2
3 files changed
Lines changed: 10 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
515 | 515 | | |
516 | 516 | | |
517 | 517 | | |
518 | | - | |
| 518 | + | |
519 | 519 | | |
520 | 520 | | |
521 | 521 | | |
| |||
879 | 879 | | |
880 | 880 | | |
881 | 881 | | |
882 | | - | |
| 882 | + | |
883 | 883 | | |
884 | 884 | | |
885 | 885 | | |
| |||
1565 | 1565 | | |
1566 | 1566 | | |
1567 | 1567 | | |
1568 | | - | |
| 1568 | + | |
1569 | 1569 | | |
1570 | 1570 | | |
1571 | 1571 | | |
| |||
1695 | 1695 | | |
1696 | 1696 | | |
1697 | 1697 | | |
1698 | | - | |
| 1698 | + | |
1699 | 1699 | | |
1700 | 1700 | | |
1701 | 1701 | | |
| |||
1846 | 1846 | | |
1847 | 1847 | | |
1848 | 1848 | | |
1849 | | - | |
| 1849 | + | |
1850 | 1850 | | |
1851 | 1851 | | |
1852 | 1852 | | |
| |||
2526 | 2526 | | |
2527 | 2527 | | |
2528 | 2528 | | |
2529 | | - | |
| 2529 | + | |
2530 | 2530 | | |
2531 | 2531 | | |
2532 | 2532 | | |
| |||
2626 | 2626 | | |
2627 | 2627 | | |
2628 | 2628 | | |
2629 | | - | |
| 2629 | + | |
2630 | 2630 | | |
2631 | 2631 | | |
2632 | 2632 | | |
| |||
4556 | 4556 | | |
4557 | 4557 | | |
4558 | 4558 | | |
4559 | | - | |
| 4559 | + | |
4560 | 4560 | | |
4561 | 4561 | | |
4562 | 4562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
| 21 | + | |
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| |||
0 commit comments