Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed dependencies not removed from mix.lock #4410

Closed
benoitc opened this Issue Mar 19, 2016 · 1 comment

Comments

Projects
None yet
2 participants
@benoitc
Copy link

benoitc commented Mar 19, 2016

Environment

[hackney] elixir -v                                                                                               11:18:34  ☁  master ☂ ⚡
Erlang/OTP 18 [erts-7.1] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [kernel-poll:false]

Elixir 1.2.3
hackney] uname -a                                                                                                11:20:14  ☁  master ☂ ⚡
Darwin Benoits-iMac.local 15.3.0 Darwin Kernel Version 15.3.0: Thu Dec 10 18:40:58 PST 2015; root:xnu-3248.30.4~1/RELEASE_X86_64 x86_64 i386 iMac15,1 Darwin

Current behavior

removed a dependency from the list of des to fetch and that change is not reflected in mix.lock

Expected behavior

having the removed dependency also removed from mix.lock

@josevalim

This comment has been minimized.

Copy link
Member

josevalim commented Mar 19, 2016

That's on purpose because some projects have dependencies that are fetched only in certain environments. To clean up the lock, run mix deps.unlock --unused or some of the options. Thank you!

@josevalim josevalim closed this Mar 19, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.