8000 Fix fallback version number that is currently a tuple {plain, "0"} · Issue #750 · erlware/relx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Fix fallback version number that is currently a tuple {plain, "0"} #750
Closed
@tsloughter

Description

@tsloughter

This happens when using git as the version but the .git directory not being there. When that happens it falls back to using "0" as the 5641 version but for some reason it is {plain, "0"} instead of just "0" and this crashes one of the log lines:

[{io,format,
     [<0.63.0>,"===> Solving Release ~p-~s~n",[service_discovery,{plain,"0"}]],
     []},
 {rlx_prv_release,solve_release,4,
                  [{file,"/home/tristan/Devel/rebar3/_checkouts/relx/src/rlx_prv_release.erl"},
                   {line,156}]},
 {rlx_prv_release,find_default_release,2,
                  [{file,"/home/tristan/Devel/rebar3/_checkouts/relx/src/rlx_prv_release.erl"},
                   {line,103}]},
 {relx,run_provider,2,
       [{file,"/home/tristan/Devel/rebar3/_checkouts/relx/src/relx.erl"},
        {line,309}]},
 {lists,foldl,3,[{file,"lists.erl"},{line,1263}]},
 {relx,run_providers_for_actions,2,
       [{file,"/home/tristan/Devel/rebar3/_checkouts/relx/src/relx.erl"},
        {line,292}]},
 {relx,main,2,
       [{file,"/home/tristan/Devel/rebar3/_checkouts/relx/src/relx.erl"},
        {line,65}]},
 {rebar_relx,do,4,
             [{file,"/home/tristan/Devel/rebar3/src/rebar_relx.erl"},
              {line,45}]}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0