[Proposal] Create symlink in deps/ dir with :path dependencies

24 views
Skip to first unread message

Shumpei Shiina

unread,
Aug 5, 2019, 1:36:10 AM8/5/19
to elixir-lang-core
Why not create symlink in deps dir with :path dependencies in Mix projects?

If you want to consult files in dependencies, you can access them by `deps/foo/...`, but in case of :path deps, you cannot do it simply.
Creating symlink is more intuitive for me than accessing :path deps directly. I think it is not intuitive that there is no dirs in deps/ if we add them as :path deps.
Perhaps it can also simplify the internal implementation because we don't have to switch :path deps and others when compilation.

José Valim

unread,
Aug 5, 2019, 2:23:05 AM8/5/19
to elixir-l...@googlegroups.com
Unfortunately symlinks do not work consistently across all OSes. Regarding the implementation, it probably wouldn’t simplify anything, because all deps store where their location is. Even if they were all in deps/, it is better to have it stored somewhere than hardcode paths everywhere.

--
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-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elixir-lang-core/8cad1319-0dc0-416f-860b-873b2038051e%40googlegroups.com.
--


José Valim
Skype: jv.ptec
Founder and Director of R&D
Reply all
Reply to author
Forward
0 new messages