v0.13.6
errors and warnings / manifest

errors and warnings / manifest / E4007

E4007 error

Cyclic profile or minification-level inheritance (inherits / extends)

area
manifest (x4xxx)
fails the build
yes

Profiles that inherit from each other in a circle (beta inherits staging, which inherits beta), or minification levels that extend each other in a circle. The effective settings are built by walking the chain down to its base, so a chain that never reaches a built-in profile or level has no settings.

Let one of them inherit from a built-in profile (dev or release), or extend a built-in level.

Example

× failswowlua.jsonjson
{    "package": {        "name": "playground",        "version": "0.1.0",        "wowlua": "^0.13"    },    "flavors": {        "camelot": {}    },    "profiles": {        "beta": { "inherits": "staging" },        "staging": { "inherits": "beta" }    }}
✓ compileswowlua.jsonjson
{    "package": {        "name": "playground",        "version": "0.1.0",        "wowlua": "^0.13"    },    "flavors": {        "camelot": {}    },    "profiles": {        "beta": { "inherits": "staging" },        "staging": { "inherits": "release" }    }}

The compiler reports it like this:

error[E4007]: profile inheritance cycle: beta → staging → beta
   ┌─ wowlua.json:11:19
   │
11 │         "beta": { "inherits": "staging" },
   │                   ^^^^^^^^^^ cycle
codemessage
E4006Unknown profile, minification level, publish target or bundled addon referenced
E4315Custom profile without inherits

Offline

terminal
$ wowlua explain E4007
E4007 (error): Cyclic profile or minification-level inheritance (inherits / extends)

source on GitHub ↗