BoxLang: Our new JVM Dynamic Language made by Ortus! Check it out: https://www.boxlang.io

System Modules fail when the modules they depend on are not loaded first

Description

When a commandbox module is installed as a system module, it installs a dependency underneath it.
Even though a dependency is listed as a dependency in the box.json and the moduleConfig.cfc… CommandBox will error when trying to load the parent module if that other module is not installed at the top level of system components, or in the actual folder when you are starting the commandbox cli in.

If i manually install the module at the top level of the system modules, it works,

if I rely on the module looking in its own dependencies, I get this error even though it is installed there

 

Module [commandbox-migrations] failed to load! Check the logs for more info ( system-log | open ).

Cannot activate module: sqlFormatter
The module has not been registered, register the module first and then activate it.
D:\www\__bin\CommandBoxFiles\cfml\system\services\ModuleService.cfc:414

The sqlformatter was the same version in both locations.

So I guess CommandBox's module loader needs love?

I am running 6.1.0+00813

I could not find another ticket related to this.

Activity

Show:

Brad WoodFebruary 17, 2025 at 6:19 PM

I’d need steps to reproduce in order to understand what’s happening.

Pinned fields
Click on the next to a field label to start pinning.

Details

Assignee

Reporter

Priority

Sentry

Created February 17, 2025 at 3:59 PM
Updated February 17, 2025 at 6:19 PM

Flag notifications