I have an app, let’s call it foo, and it has some support code, let’s say that’s in lib/foo/manager. The stuff in lib/foo/manager doesn’t really belong in its own app, but I’d like have a namespace for it in my config, like so:
use Mix.Config
config :foo, :bar, "baz"
config :foo_manager, :bing, "bang"
However, when I try that, I get this error upon startup:
You have configured application :foo_manager in your configuration file,
but the application is not available.This usually means one of:
You have not added the application as a dependency in a mix.exs file.
You are configuring an application that does not really exist.
Please ensure :poof_manager exists or remove the configuration.
…and for the life of me I can’t find a reasonable way to convince mix that I don’t care that :foo_manager isn’t a real module.
I’d even settle for a reasonably clean way to fake the application. Does anyone have a workaround for me?