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
Remove space before colon in livecheck
output
#13201
Remove space before colon in livecheck
output
#13201
Conversation
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.
Approve
158f376
to
37c46e1
Compare
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've been mildly annoyed by the space before the colon in the past, although I've mostly just chosen to ignore it. I can't immediately think of any drawbacks – I don't think it makes pattern matching any harder, and we have --json
anyway for something that can be easily processed by programs. I wonder if anyone else (maybe @samford) feels strongly against this change.
We make absolutely no guarantees elsewhere about the "stability" for output parsing outside of |
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.
Looks good
Honestly, I would be surprised if anyone who uses livecheck is fond of the space before the colon 😆. I think most people have simply accepted it as something that has been around since the beginning (late 2014). I overhauled a lot of livecheck's output in 2020 but I didn't change the colon spacing because, at the time, there was a project going on that was parsing the default livecheck output (i.e., the beginnings of I don't see it as an issue if this breaks third-party parsing of default livecheck output, as we haven't made any guarantees about the output format and it would arguably serve as an opportunity for them to migrate to parsing the JSON data instead. I can at least say that this shouldn't affect Homebrew, as we either parse JSON output (working from the outside) or directly use livecheck's methods (working from the inside). Long story short, I'm fine with this general idea. |
Thanks so much for your first contribution! Without people like you submitting PRs we couldn't run this project. You rock, @mhmdanas! |
brew style
with your changes locally?brew typecheck
with your changes locally?brew tests
with your changes locally? (There are some failures but they seem unrelated)I find the space before the colon mildly irritating and saw no reason to keep it, but if there is one feel free to close this PR.