我有简单的功能: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