I removed a dependency from mix.exs and ran "mix deps.get" but the removed dependency was still listed in mix.lock.
I had(?) to do
mix deps.unlock --all # Make mix.lock empty
mix deps.get # Populate it again – in some cases with newer versions
for this to happen. And also perhaps
mix deps.clean --unused
to remove the files from disk.
My mental model of this is based on Bundler for Ruby. With Bundler, the "bundle install" (or just "bundle") command will download any missing dependencies/versions AND get rid of removed ones.
What is the recommended way to work with mix in this regard? What should I do when I remove a dependency from mix.exs?