Hex.pm and umbrella projects

181 views
Skip to first unread message

Florian Adamsky

unread,
Jun 9, 2016, 10:41:02 AM6/9/16
to elixir-l...@googlegroups.com
Hey,

a couple of month ago, I wrote a mainline distributed hash table (MLDHT)
library in Elixir [1]. This library makes use of an umbrella project. I
tried to publish this library to hex, but without luck. Hex gave me the
following error message:

,----
| $ mix hex.publish
| mix.exs:35: warning: function package/0 is unused
| mix.exs:29: warning: function description/0 is unused
| ** (Mix) Hex does not support umbrella projects
`----

Are umbrella projects not yet supported? Which means it will be
supported in the future or are there any other reasons why umbrella
projects are not supported?

Thanks in advance!

Regards

Links:
[1] https://github.com/cit/MLDHT
--
Florian Adamsky
http://florian.adamsky.it/

Eric Meadows-Jönsson

unread,
Jun 9, 2016, 10:59:22 AM6/9/16
to elixir-l...@googlegroups.com
It's unlikely Hex will support umbrella applications as packages. A Hex package is supposed to be an OTP application, with an umbrella you have multiple OTP apps which is incompatible with how Hex works. In my mind umbrella apps is better suited for end-user projects rather than for libraries.

If your umbrella children work as individual applications you can publish them as individual packages if you set up the dependencies correctly for Hex.


--
You received this message because you are subscribed to the Google Groups "elixir-lang-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elixir-lang-ta...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-talk/8737ome87a.fsf%40voyager.lan.
For more options, visit https://groups.google.com/d/optout.



--
Eric Meadows-Jönsson
Reply all
Reply to author
Forward
0 new messages