Skip to content

Commit

Permalink
Add rebar_lock_deps_plugin support to generate lock file
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredmorrow committed Sep 7, 2013
1 parent 601560b commit e828b37
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
17 changes: 16 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,26 @@ clean: testclean
distclean: clean devclean relclean ballclean
./rebar delete-deps


generate:
./rebar generate $(OVERLAY_VARS)


##
## Lock Targets
##
## see https://github.com/seth/rebar_lock_deps_plugin
lock: deps compile
./rebar lock-deps

locked-all: locked-deps compile

locked-deps:
@echo "Using rebar.config.lock file to fetch dependencies"
./rebar -C rebar.config.lock get-deps

##
## Test targets
##
TEST_LOG_FILE := eunit.log
testclean:
@rm -f $(TEST_LOG_FILE)
Expand Down
5 changes: 3 additions & 2 deletions rebar.config
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
{riak_control, ".*", {git, "git://github.com/basho/riak_control", {branch, "develop"}}},
{riaknostic, ".*", {git, "git://github.com/basho/riaknostic", {branch, "develop"}}},
{yokozuna, ".*", {git, "git://github.com/basho/yokozuna", {branch, "develop"}}}
{rebar_lock_deps_plugin, ".*",
{git, "git://github.com/seth/rebar_lock_deps_plugin.git", {branch, "master"}}}
]}.

{plugin_dir, "deps/cuttlefish/src"}.
{plugins, [cuttlefish_rebar_plugin]}.
{plugins, [cuttlefish_rebar_plugin, rebar_lock_deps_plugin]}.

0 comments on commit e828b37

Please sign in to comment.