Today I Learned

hashrocket A Hashrocket project

(Really) Remove Elixir Dependencies

Something that suprised me about Elixir's dependency management tooling: sometimes libraries removed from the manifest hang around in the lockfile. They are fetched and installed, and often never used.

The solution:

$ mix deps.unlock --unused

We've run this a few times on Today I Learned, and always found a stowaway library or two.

See More #elixir TILs
Looking for help? At Hashrocket, we 💜 Elixir! From our many Elixir client projects, to sponsoring the Chicago Elixir Meetup, to the source code for this application, we are invested in this community. Contact us today to talk about your Elixir project.