Commit 25a93e3
committed
fix: remove hardcoded src prefix from package imports
The handler discovery and dependency resolver were using hardcoded
'src.application', 'src.domain', 'src.infrastructure' paths which
don't exist when the package is installed via pip.
When installed, the package structure is:
- application/ (not src.application)
- domain/
- infrastructure/
This caused handler discovery to fail with 'No matches found for
pattern: src' when running the CLI from an installed package.
Changes:
- HandlerDiscoveryService: Changed default base_package from
'src.application' to 'application' (line 96)
- HandlerDiscoveryService: Fixed fallback discovery path (line 339)
- DependencyResolver: Removed 'src.' prefix from fallback import
locations (lines 356-358)
Fixes CLI import errors when package is installed via pip install.1 parent e94ebb3 commit 25a93e3
2 files changed
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
353 | 353 | | |
354 | 354 | | |
355 | 355 | | |
356 | | - | |
357 | | - | |
358 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
359 | 359 | | |
360 | 360 | | |
361 | 361 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
339 | | - | |
| 339 | + | |
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
| |||
0 commit comments