Skip to content

Commit

Permalink
Do not attempt to format version for custom versions (#325)
Browse files Browse the repository at this point in the history
  • Loading branch information
starbelly authored Mar 10, 2023
1 parent 6f952d3 commit be05e57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rebar3_hex_cut.erl
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ try_publish(State, Repo, App, Args) ->

increment_version(other, _CurrentVersion) ->
CustomVersion = rebar3_hex_io:ask("New Version ", string),
Parsed = parse_version(CustomVersion),
rebar3_hex_version:format(Parsed);
_parsed = parse_version(CustomVersion),
rebar_utils:to_binary(CustomVersion);

increment_version(Type, VersionStr) when is_list(VersionStr) orelse is_binary(VersionStr) ->
Parsed = parse_version(VersionStr),
Expand Down

0 comments on commit be05e57

Please sign in to comment.