I have this error when importing a single piece of config manually:
Configuration foo.api depends on the MODULE extension that will not be installed after import.
There is no "MODULE" extension in the file system, core.extension
config, the KeyValue table, config_snaphot, or anywhere else that I'm aware of that would be related.
If I delete the config
\Drupal::configFactory()->getEditable('foo.api')->delete();
Then try the import, it works. Great.
But as soon as I go back to my config form and save foo.api, the next time I try to import, I get the same error all over again.
This leads me to believe that a dependency tree must be stored somewhere, and that it isn't cleared when config is deleted.
Is this true, and if so where is it? If not, how can I resolve this?
I guess this could also be rephrased as How are module dependencies for basic configuration calculated, and how do you manually update them when they’re wrong?