Nested apps in umbrella

54 views
Skip to first unread message

Kok J Sam

unread,
Nov 6, 2017, 8:54:55 PM11/6/17
to elixir-lang-core
Hello everyone, I have a question regarding nested apps in an umbrella. I have a set of growing libs and would like put these libs into its own folder.

Current project structure looks something like this:

```
\umbrella
  mix.exs
  \core
    mix.exs
  \lib_analytics
    mix.exs
  ...
  \lib_utilities
    mix.exs
```

`core` depends on `lib_analytics` and `lib_utilities`. In `core` dependency list, I have `{:lib_analytics, in_umbrella: true}` and `{:lib_utilities, in_umbrella: true}`.

What I would like to do:

```
\umbrella
  mix.exs
  \core
    mix.exs
  \libraries
    \analytics
      mix.exs
    \utilities
      mix.exs
```

What I have tried:

1. using `apps_path: "apps/{core,libraries/*}"` as suggested here. But it didn't work.
2. using umbrella within umbrella. I kept getting `dependencies have diverged` errors.

Any pointers would be greatly appreciated! Thanks!

Christopher Keele

unread,
Nov 7, 2017, 10:46:22 PM11/7/17
to elixir-lang-core
Hey! I noticed you already posted this on elixirforum.com, so I've responded to it there––as a general reminder, that's definitely the place for these sorts of questions. This mailing list is for discussion on evolving the language itself.

Kok J Sam

unread,
Nov 8, 2017, 12:34:45 AM11/8/17
to elixir-lang-core
Ok, gotcha! Thanks for letting me know!
Reply all
Reply to author
Forward
0 new messages