Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle 'tmux master' version more gracefully #574

Merged

Conversation

rglassett
Copy link
Contributor

Same diff as #545 with minor changes as discussed in that thread. Treats 'tmux master' as being arbitrarily high, and displays a deprecation warning to users attempting to run tmuxinator under 'tmux master'.

Same diff as tmuxinator#545 with minor changes as discussed in that thread. Treats
'tmux master' as being arbitrarily high, and displays a deprecation
warning to users attempting to run tmuxinator under 'tmux master'.
@rglassett
Copy link
Contributor Author

It occurs to me that I should link related issues in the commit message and changelog. I'll add that when I can.

@rglassett
Copy link
Contributor Author

It also occurs to me that the warning should be printed for any unsupported version, not just master. I'll go back and clean that up as well.

Copy link
Contributor

@adamstrickland adamstrickland left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As you mention, I think links to the issue(s) in the changelog and the more general messaging for unsupported versions should be added, but otherwise 👍

Copy link
Member

@ethagnawl ethagnawl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have one, very small nitpick: would you mind capitalizing "you" at the start of the TMUX_MASTER_DEP_MSG deprecation message? (I'll open a separate issue about using consistent formatting in the others, e.g. PRE/POST_DEP_MSG.)

Otherwise, pending those changes you mentioned, this looks good to me!

- References relevant open issues in changelog.
- Adds a list of supported tmux versions to the Tmuxinator module.
- Generalizes deprecation warning to apply to all unsupported versions.
- Removes 'master' from .travis.yml since it is not officially
  supported.
@rglassett
Copy link
Contributor Author

Comments addressed. Ideally I'd like .travis.yml and the Tmuxinator code to share a single source of truth for supported tmux versions, but it's probably not critical for now.

@aepyornis
Copy link

@rglassett @adamstrickland @ethagnawl thanks for this! It solved the very problem I was having.

I was wondering how you'd feel about having an option - environment variable? cli flag? -- to disable the warning? That way those using tmux master wouldn't have to hit 'enter' every time they fire up tmuxinator.

@rglassett
Copy link
Contributor Author

👍, I think a --quiet flag makes sense.

@rglassett rglassett deleted the tmux-master-version-warning branch December 7, 2017 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants