Remove, Get, And Compile a dependency
To get a better feel for how a dependency works I'll do some IO.puts
style
debugging, but when I'm done I need to clean up all those IO.puts
statements.
mix deps.clean ecto
The above command will remove two directories, the _build/dev/lib/ecto
dir and the deps/ecto
dir.
mix deps.get ecto
This command will resolve the dependency tree and get the appropriate version of ecto based on the information in your mix.exs file. It will not reach out to the internet if the package is already cached as a tar file in the .hex/packages/hexpm
dir. It will unpack the tar file into the local deps/ecto
dir but it will not compile it.
mix deps.compile ecto
Will compile ecto to the _build/dev/lib/ecto
directory.