Should @external_resource support directories, as well as file?

129 views
Skip to first unread message

Ramon Snir

unread,
May 16, 2015, 1:28:04 PM5/16/15
to elixir-l...@googlegroups.com
Hello all,

Today @external_resource only works for regular files. I think (because I'd use it in an application I'm writing - which now requires an occasional mix clean) that it should be extended to support directories too: effecting recompilation when either the directory's mtime was changed, or any of its files (and most importantly: if a file was added/removed).

Is there a reason not to support this?

José Valim

unread,
May 16, 2015, 3:55:33 PM5/16/15
to elixir-l...@googlegroups.com
Mix was used to rely more on directories but we have learned the hard way that their mtime is mostly unreliable on all OSes. They don't get updated when they should, often go to unexpected values. So my advice would be to avoid them.
--
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/4576af35-5fe5-4b5a-8eff-d6b657568a02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--


José Valim
Skype: jv.ptec
Founder and Lead Developer

Reply all
Reply to author
Forward
0 new messages