diff options
author | Loïc Hoguin <[email protected]> | 2024-11-18 15:40:03 +0100 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2024-11-19 15:34:48 +0100 |
commit | 49534003e387676d0140d9fc24adbd3f9742acaf (patch) | |
tree | 8da36ffe7ba42e3a939a7796e735752fd4097641 /test | |
parent | a5f32341d923d6c0bee6efba2f156558c994ff56 (diff) | |
download | erlang.mk-49534003e387676d0140d9fc24adbd3f9742acaf.tar.gz erlang.mk-49534003e387676d0140d9fc24adbd3f9742acaf.tar.bz2 erlang.mk-49534003e387676d0140d9fc24adbd3f9742acaf.zip |
Use hex_core to fetch Hex packages
This should both be more solid and more secure.
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/test/Makefile b/test/Makefile index 92c7be0..5240115 100644 --- a/test/Makefile +++ b/test/Makefile @@ -129,10 +129,15 @@ all:: $t : clean:: - $t rm -rf erl_crash.dump packages/ $(filter-out test_rebar_git/,$(wildcard test_*/)) + $t rm -rf erl_crash.dump packages/ $(filter-out test_hex_core_git/ test_rebar_git/,$(wildcard test_*/)) init: clean - $i "Prefetch Rebar if necessary" + $i "Prefetch hex_core if necessary" + $t if [ ! -d test_hex_core_git ]; then \ + git clone -q -n -- https://github.com/hexpm/hex_core test_hex_core_git; \ + fi + + $i "Prefetch rebar if necessary" $t if [ ! -d test_rebar_git ]; then \ git clone -q -n -- https://github.com/erlang/rebar3 test_rebar_git; \ fi @@ -140,6 +145,9 @@ init: clean $i "Generate a bleeding edge Erlang.mk" $t cd .. && $(MAKE) $v +HEX_CORE_GIT = file://$(CURDIR)/test_hex_core_git +export HEX_CORE_GIT + REBAR3_GIT = file://$(CURDIR)/test_rebar_git export REBAR3_GIT |