Why are children not given to the start argument in `mix.exs`?

I think you’re on the right track, but the other thing to emphasize is that really anything you’d want to do at runtime to configure children, or choose which children to run, won’t work properly in mix.exs. It’s also important to note that mix.exs is run prior to any dependencies being compiled because it’s the thing that defines the dependencies. So if you want to do any child spec that needs your dependencies, that’s out too.

2 Likes