diff options
author | Tristan Sloughter <t@crashfast.com> | 2019-05-12 13:30:42 -0600 |
---|---|---|
committer | Tristan Sloughter <t@crashfast.com> | 2019-05-12 13:31:17 -0600 |
commit | 67026e08916578a03ae5637284ad5eb6818a3c7f (patch) | |
tree | 034492a364d91c64b142f2d2d7ecf56801fdb83a /src/rebar_resource_v2.erl | |
parent | cbe3292b52802a8ef7b39a40287d1cd8019f46a1 (diff) |
add support for git ref and file content as app version
Diffstat (limited to 'src/rebar_resource_v2.erl')
-rw-r--r-- | src/rebar_resource_v2.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rebar_resource_v2.erl b/src/rebar_resource_v2.erl index b7ee760..537b5f0 100644 --- a/src/rebar_resource_v2.erl +++ b/src/rebar_resource_v2.erl @@ -101,7 +101,8 @@ needs_update(AppInfo, State) -> resource_run(needs_update, rebar_app_info:source(AppInfo), [AppInfo], State). %% this is a special case since it is used for project apps as well, not just deps -make_vsn(AppInfo, VcsType, State) -> +make_vsn(AppInfo, Vsn, State) -> + VcsType = case Vsn of {T, _} -> T; T -> T end, Resources = rebar_state:resources(State), case is_resource_type(VcsType, Resources) of true -> |