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

broken pcre detection is broken #1013

Closed
asottile opened this issue Apr 29, 2019 · 1 comment
Closed

broken pcre detection is broken #1013

asottile opened this issue Apr 29, 2019 · 1 comment

Comments

@asottile
Copy link
Member

@asottile asottile commented Apr 29, 2019

def platform_supports_pcre():
output = cmd_output(GREP, '-P', "name='pre", 'setup.py', retcode=None)
return output[0] == 0 and "name='pre_commit'," in output[1]

When I moved to declarative metadata this got broken.

This'll need to be updated to look at something else. Before it was making sure that single quotes were being handled properly inside pcre greps (since this is broken in the msys implementation of grep -P)

@asottile
Copy link
Member Author

@asottile asottile commented Apr 29, 2019

Right now the only fallout of this is the PCRE tests are all XFAILed

@asottile asottile closed this in e9e665d Apr 29, 2019
asottile added a commit that referenced this issue Apr 29, 2019
Could this fix #1013?
kvalkhof75 pushed a commit to kvalkhof75/pre-commit that referenced this issue Dec 5, 2019
I'm still a beginner, but a single single quote looked a bit off to me.
Could adding another single quote after pre fix this issue?
kvalkhof75 pushed a commit to kvalkhof75/pre-commit that referenced this issue Dec 5, 2019
Changed the string and file referenced to handle single quotes properly inside pcre greps.
kvalkhof75 pushed a commit to kvalkhof75/pre-commit that referenced this issue Dec 5, 2019
Properly changed the string and file referenced to handle single quotes properly inside pcre greps.
kvalkhof75 pushed a commit to kvalkhof75/pre-commit that referenced this issue Dec 5, 2019
One again changed the string and file referenced to handle single quotes properly inside pcre greps.
kvalkhof75 pushed a commit to kvalkhof75/pre-commit that referenced this issue Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.