I removed a dependency from `deps/0` in  `mix.exs` and realised that it 
didn't remove it from the lock file.

Is `mix deps.clean --unlock --unused` the correct way to fully remove a 
dependency [0]?

If so I was thinking most developers probably don't realise this. Perhaps a 
new alias could be added called `deps.sync` that you run after 
adding/removing dependencies 🤔

eg.

"deps.sync": ["deps.get", "mix deps.clean --unlock --unused"]

[0]: 
https://til.hashrocket.com/posts/biytzjjppd-how-to-remove-unused-deps-from-mixlock

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elixir-lang-core+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/618b8a50-c9da-47dc-9acf-31b78deecc83n%40googlegroups.com.

Reply via email to