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

Fix format_check.py failing on Windows with Python 3.7 #6188

Merged

Conversation

Smjert
Copy link
Member

@Smjert Smjert commented Jan 18, 2020

  • The output from the git subprocess has to be decoded from bytes
    to str before passing it as an argument of a new subprocess.

  • Use the python interpreter of the current script to run git-clang-format.py.

Closes #6089

theopolis
theopolis previously approved these changes Jan 18, 2020
- The output from the git subprocess has to be decoded from bytes
  to str before passing it as an argument of a new subprocess.

- Use the python interpreter of the current script to run git-clang-format.py.
@Smjert
Copy link
Member Author

Smjert commented Jan 18, 2020

@theopolis thanks and sorry, had a nit on the commit message, format.py -> git-clang-format.py.

@theopolis theopolis merged commit 0d779a7 into osquery:master Jan 18, 2020
@Smjert Smjert deleted the stefano/fix/format-check-windows branch January 29, 2020 19:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix format_check.py on Windows
2 participants