Closed psylone closed 5 years ago
Sorry, my bad. The correct way is to use :hex
option:
defp deps do
[{:nats, "~> 0.1.6", hex: :natsio}]
end
But, probably it's still a good idea to change it in the README.
Thank you all for using NATS! Note that this client has largely been unmaintained and so has been deprecated. Moving forward we suggest you migrate to the nats.ex client which will be actively maintained. We'll keep this repository public in case you'd prefer to make a copy to maintain yourselves, but hope you'll have a good experience with the new client. We sincerely apologize for the inconvenience.
Getting the
could not find an app file at "_build/dev/lib/natsio/ebin/natsio.app".
error during the compilation of the mix application.Steps to reproduce
Create a new mix application:
Add
natsio
dependency from hex in themix.exs
file:Get all dependencies:
Compile the application:
Error log
I believe that's because the application itself is called
nats
rather thannatsio
. Since there's no supervision tree inside thenats
app, we can add dependency optionapp: false
which will prevent mix application from readingnats
app file:If it helps, probably we can drop a line about it in the docs.