Making a Local Copy of the Dependencies
My bertie application made a local copy of bitcask
in a local
subdirectory of the bertie application. Sometimes several
different applications want to make use of the same dependencies,
in which case we create a dependency directory structure
outside our application.
For my local projects I keep all my downloaded rebar dependencies in
one place. I store all these dependencies under a top-level directory called ~joe/nobackup/erl_imports
. My machine is
organized so that any files under the nobackup
directory are not subject to backup. Since the files I’m
interested in are widely available on the Web, it doesn’t seem
necessary to create local backups.
The file ~joe/nobackup/erlang_imports/rebar.config ...
Get Programming Erlang, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.