-
Notifications
You must be signed in to change notification settings - Fork 296
Fixed #133. Release upgrade now handle long and short names properly. #426
Conversation
+1 |
Just to be clear, that's a backwards incompatible change over the current tooling we provide, isn't it? |
Yes, as the functionality is moved into a sub-command of nodetool. Do you think |
Either that or just left there for compatibility reasons. Otherwise we'll have to go a full deprecation cycle on this PR. |
So, should I add some wrapper to this PR, as @Tuncer suggests? |
Yeah. That way we'd maintain backwards compatibility as much as possible. Is there anything else you'd expect to break or change for someone using the script? |
No, I'll just add a wrapper for nodetool, which will follow original |
Then that sounds good. |
@ferd maybe I should also add comment about deprecation to |
Yeah. That one would be needed. In practice I don't know if this will be considered breaking or not, if existing configs suddenly stop working because we don't copy the file It would be extremely annoying to deploy a node/release and then when you need to operate on it, suddenly realize the scripts don't work because someone upgraded rebar on the build server. |
@ferd ok, I've just added backward-compatible |
Alright, with the rebasing stuff looks like it still passes. I'm in for the backwards compatible script. @Tuncer any last thing before I merge this in? |
@@ -38,7 +38,7 @@ | |||
{copy, "files/{{nodeid}}", "bin/{{nodeid}}"}, | |||
{copy, "files/{{nodeid}}.cmd", "bin/{{nodeid}}.cmd"}, | |||
{copy, "files/start_erl.cmd", "bin/start_erl.cmd"}, | |||
{copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"}, | |||
{copy, "files/install_upgrade.escript", "bin/install_upgrade.escript"}, % may be safely removed in new projects |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would put the comment on a separate (previous) line for readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, the new version has to use %%
though, and it should be indented like the surrounding lines.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, it's best to squash the fixup commits into the original commit.
Implemented, by moving upgrade functionality from install_upgrade.escript to nodetool, which already supports both short and long names. Make install_upgrade.escript as wrapper for nodetool for backward compatibility.
@Tuncer comment fixed and all commits squashed to one. |
Fixed #133. Release upgrade now handle long and short names properly.
Implemented, by moving upgrade installation from install_upgrade.escript to nodetool, which already supports both short and long names.
See https://github.com/rebar/rebar/issues/133#issuecomment-69211063 for details.
I've tested this version on my project and it works nice. No tests (
make test
) were broken.