-
-
Notifications
You must be signed in to change notification settings - Fork 107
Wrong base component path in jobs commands #2003
Copy link
Copy link
Open
Labels
phase:1-stabilizeBugs, cleanup, CI fixes — tackle firstBugs, cleanup, CI fixes — tackle first
Description
Describe the bug
Multiple job-related CLI commands fail to load because they reference the wrong path for the base component. The error is: invalid component definition, can't find component [../../base]
This affects the following commands:
wheels jobs monitorwheels jobs purgewheels jobs retrywheels jobs statuswheels jobs work
To Reproduce
- Install Wheels CLI:
box install wheels-clior simply link latest CLI fromdevelopbranch tocommandBox - Run
box reloador start CommandBox - Observe the error during module loading
Expected behavior
The CLI module should load successfully without errors, and all jobs commands should be available.
Desktop:
- OS: macOS
- Wheels Branch: Develop
Additional context
Affected Files:
cli/src/commands/wheels/jobs/monitor.cfc:11cli/src/commands/wheels/jobs/purge.cfc:11cli/src/commands/wheels/jobs/retry.cfc:10cli/src/commands/wheels/jobs/status.cfc:10cli/src/commands/wheels/jobs/work.cfc:14
Problematic Code (in all files):
component extends="../../base" {Root Cause: The jobs/ directory is directly under wheels/. The path ../../base goes two levels up to commands/ but base.cfc is located in wheels/ (only one level up).
Suggested Fix: Change extends="../../base" to extends="../base" in all five files.
Directory Structure:
commands/wheels/
├── base.cfc <-- base.cfc is here
├── assets/
│ └── init.cfc (extends "../base" - CORRECT)
└── jobs/
├── monitor.cfc (extends "../../base" - WRONG)
└── ...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
phase:1-stabilizeBugs, cleanup, CI fixes — tackle firstBugs, cleanup, CI fixes — tackle first