Closed adrienmo closed 8 years ago
That's by design. A package from Hex can only contain Hex dependencies. When you run mix hex.publish
, you should see a warning saying those dependencies won't be part of the package.
@josevalim this restriction also applies to building a local package with mix hex.build
. I'd like to be able to test full packages within a monorepo before I publish them to the registry.
I am trying to publish an hex package that has both hex and github dependencies.
If I am adding the hex package to my project:
the dependency tree (running mix deps.tree) will look like:
The github dependency of my library is not downloaded. However if I use github to retrieve my library:
the dependency tree (running mix deps.tree) will look like:
Which is the correct dependency tree I am exepecting to see. I am not sure if I missed something or if this is a bug from hex/mix or if it is just the exepected behavior (package downloaded from hex can only contains hex dependencies).