Skip to content

Fix broken ktfmt availability check #219

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

Merged
merged 1 commit into from
May 30, 2023
Merged

Conversation

grodtron
Copy link
Contributor

@grodtron grodtron commented May 25, 2023

(Fixes issue #218) When trying to use this locally, I was getting repeated errors that ktfmt was not available. Reversing the conditional here makes everything work correctly for me (on Linux), and also makes sense (success of a command line tool is indicated by return code equal to 0).

When trying to use this locally, I was getting repeated errors that ktfmt was not available. Reversing the conditional here makes everything work correctly for me (on Linux), and also makes sense (success of a command line tool is indicated by return code equal to 0).
@grodtron grodtron changed the title Fix #218 Fix broken ktfmt availability check May 25, 2023
@dbarnett
Copy link
Contributor

LGTM.

Per discussion in the PR, it already gives decent warnings if it does fail, so if anyone does start seeing issues they can give us a nice actionable report and we can fix corner cases pretty quickly.

@dbarnett dbarnett merged commit 09ee74c into google:master May 30, 2023
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.

2 participants