-
Notifications
You must be signed in to change notification settings - Fork 25
Installing from Hex doesn't fetch all dependencies #40
Comments
Ouch -- thanks for the report. Will fix ASAP. That being said, this is a good impetus to fix #16. |
I opened an issue with websocket_client, jeremyong/websocket_client#44, to try and get the library into hex. However, given that this is out of our control (can't even publish to hex ourselves because someone is squatting on the package) and fixing #16 would take care of this issue (Spell's user would have to explicitly include the dependency), I'd like to go ahead and resolve #16. As an interface change, that would bump the vsn to 0.2.0. With the bump, I'd like to also fit in #19 which I'm currently working on. |
That's a good strategy and I definitely agree with #16 One possible way forward to resolve this is to plug these libraries at the configuration/setup level, like Postgrex does: https://github.com/ericmj/postgrex#extensions This way, if I only use Spell with RawSocket, I can avoid the websockets dependency (or other similar use cases). What do you think? Thanks for your work on this, BTW! |
Cool, I like how postgrex handles plugging in libraries -- it's nice to not be constrained to a particular library. But, without adding a translation layer I'm not sure if it would work for the websocket component. For postgrex's JSON extension, it just calls For JSON or MsgPack, though, it's definitely possible :) With #16 leaving the dependencies up to the user, it would still be possible to use Spell with only RawSocket, dropping the websocket dependency. The same is true of MsgPack + JSON. |
I see what you mean, makes a lot of sense! |
It seems that only other hex packages are fetched as dependencies of an hex package.
I didn't know about this myself, but I'm seeing errors as it doesn't fetch
websocket_client
.The text was updated successfully, but these errors were encountered: