我有簡單的功能:Rebar3不「包括」我的非應用程序的DEP
do_stuff(_Whatever) ->
jiffy:decode(<<"{\"foo\": \"bar\"}">>).
正如你可以看到它依賴於庫瞬間。所以我加了它在rebar.config
:
{deps, [
{cowboy, {git, "https://github.com/ninenines/cowboy", {tag, "2.0.0-pre.1"}}},
{jiffy, {git, "https://github.com/davisp/jiffy", {tag, "0.14.8"}}}
]}.
{relx, [{release, { myapp, "0.1.0" },
[vizcerl,
sasl
]},
%{sys_config, "./config/sys.config"},
%{vm_args, "./config/vm.args"},
{dev_mode, true},
{include_erts, false},
{extended_start_script, true}]
}.
但是當我運行rebar3 run
和程序得到的做到這一點,我得到錯誤該函數是不確定的。
編輯: 我跑rebar3 tree
檢查DEP是公認,這裏是結果:
└─ myapp─0.1.0 (project app)
├─ cowboy─2.0.0-pre.1 (git repo)
│ ├─ cowlib─1.0.0 (git repo)
│ └─ ranch─1.0.0 (git repo)
└─ jiffy─0.14.8 (git repo)
你是否先運行'rebar3 upgrade'。如果我是正確的,它會在deps目錄中安裝所有必要的依賴關係。 – Pascal
當然...我也清理了一切。編輯:我只是做rebar3升級,沒有任何改變。 – Haito
@Pascal另外值得注意的是,牛仔作品和jiffy不 – Haito