From b54fad92cda396936ab1e8f5b6d5138f7ed8a8e7 Mon Sep 17 00:00:00 2001 From: Jechol Lee Date: Sun, 18 Oct 2020 12:09:03 +0900 Subject: [PATCH] Support pre-fetched deps for nix. --- bootstrap | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bootstrap b/bootstrap index 358df58d..c338624f 100755 --- a/bootstrap +++ b/bootstrap @@ -20,8 +20,10 @@ main(_) -> %% cause weird failures when compilers get modified between releases. rm_rf("_build/prod"), %% The same pattern happens with default/ as well, particularly when - %% developig new things. - rm_rf("_build/default"), + %% developing new things. + %% Keep other deps in default/lib for build environments like Nix + %% where internet access is disabled that deps are not downloadable. + rm_rf("_build/default/lib/rebar"), %% We fetch a few deps from hex for boostraping, %% so we must compile r3_safe_erl_term.xrl which