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

Add Revision to version CLI output and add JSON support #8268

Merged
merged 1 commit into from
Jul 10, 2020

Conversation

mkeeler
Copy link
Member

@mkeeler mkeeler commented Jul 8, 2020

The formatters style was taken from similar code for the ACL CLI.

@mkeeler mkeeler requested review from alvin-huang and a team July 8, 2020 20:21
@mkeeler mkeeler force-pushed the feature/improved-version-output branch from d1fc590 to f0b4476 Compare July 8, 2020 20:24
@@ -0,0 +1,3 @@
Consul 1.99.3-beta1
Revision 5e5dbedd47a5f875b60e241c5555a9caab595246
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't know if this is an issue but there may be a tool/check in people's pipelines that parses the protocol from the 2nd line or tail -n 1 or something where this may break. In which case we would suggest them use the json formatter from now on.

Copy link
Member Author

@mkeeler mkeeler Jul 8, 2020

Choose a reason for hiding this comment

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

This should probably hold for v1.9 then. So merging to master and not backporting into release/1.8 is the way to go.

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, thinking about it I am not sure whether we should consider this a breaking change. We provide no guarantees about the output.

Copy link
Contributor

@dnephin dnephin left a comment

Choose a reason for hiding this comment

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

Nice! Looks great!

@mkeeler mkeeler force-pushed the feature/improved-version-output branch from f0b4476 to 680ac0c Compare July 8, 2020 20:32
Copy link
Contributor

@alvin-huang alvin-huang left a comment

Choose a reason for hiding this comment

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

LGTM!

@mkeeler mkeeler merged commit fb9517b into master Jul 10, 2020
@mkeeler mkeeler deleted the feature/improved-version-output branch July 10, 2020 14:01
@hashicorp-ci
Copy link
Contributor

🍒❌ Cherry pick of commit fb9517b onto release/1.8.x failed! Build Log

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.

4 participants