v0.13.7
errors and warnings / manifest

errors and warnings / manifest / E4324

E4324 error

Cycle of required addon dependencies within a workspace

area
manifest (x4xxx)
fails the build
yes

The workspace's addons depend on each other in a circle through addon-dependencies.required (A requires B, and B requires A). The client loads a required dependency first, so none of them could load.

Make one of the dependencies optional (addon-dependencies.optional).

Example

× failswowlua.jsonjson
{    "package": {        "name": "playground",        "version": "0.1.0",        "wowlua": "^0.13"    },    "addon-dependencies": {        "required": ["PlaygroundOptions"]    },    "flavors": {        "camelot": {}    },    "workspace": {        "members": ["options"],        "default-members": ["."]    }}
options/wowlua.jsonjson
{    "package": {        "name": "playground-options",        "version": "0.1.0"    },    "addon-dependencies": {        "required": ["Playground"]    },    "flavors": {        "camelot": {}    }}
✓ compileswowlua.jsonjson
{    "package": {        "name": "playground",        "version": "0.1.0",        "wowlua": "^0.13"    },    "addon-dependencies": {        "optional": ["PlaygroundOptions"]    },    "flavors": {        "camelot": {}    },    "workspace": {        "members": ["options"],        "default-members": ["."]    }}
options/wowlua.jsonjson
{    "package": {        "name": "playground-options",        "version": "0.1.0"    },    "addon-dependencies": {        "required": ["Playground"]    },    "flavors": {        "camelot": {}    }}

The compiler reports it like this:

error[E4324]: the workspace's required addon dependencies form a cycle: Playground → PlaygroundOptions → Playground
 = in wowlua.json
 = help: make one of them an optional dependency

Offline

terminal
$ wowlua explain E4324
E4324 (error): Cycle of required addon dependencies within a workspace

source on GitHub ↗