-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
allow model_locations to have glob patterns #1059
Conversation
This if statement check for a valid directory was happening to early. It was checking the string that contained the wildcards to see if it is a valid directory and always failing. Need to check after the foreach starts. fixes #1058 .
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.
Thanks, LGTM!
Would you be up for a test for this?
Thanks @mfn .. I think I could be up for a test tomorrow or the next day. To be honest I've been on a rampage tonight trying to get some things working and it's now 5 AM. :) |
💥 But yes, I've heard of that. Humans need 💤 and such 😏 |
Github Actions seems to hang, but nothing on https://www.githubstatus.com/ |
@mfn is there a way to force the checks to re-run? Seems strange that they hung. |
@mfn I wrote a test, but may need some feedback about where I put it etc. I tried to follow the pattern of the other tests. |
@mfn So I'll probably need some help finishing this test. It works for me locally when I run using various php versions, however when I run it included with all the rest of the tests, it fails asserting that 'Written new phpDocBlock to' is there. In other words: run the test by itself 👍 ... run the test with all the rest of them 👎 . |
Sure, I'll take a look over the weekend! I'll try and see if I can re-start the tests by closing/opening the PR. |
I don't know how it even worked for you, as the test neither in isolation nor together with the whole suite worked for me, simply because the "current working directory" as not the one expected. I pushed a fix (and updated the changelog), all green now. Are you using windows? Locally I use OSX and the GHA is using Linux, and they behaved the same. |
@mfn I'm on php 7.4.9 installed via homebrew. Regardless, I appreciate you updating it and making it truly work. |
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.
ok, great and thanks; also using phpstorm here 😏
Just wanted to make sure there's no bug hidden, but PR LGTM too.
@barryvdh IMHO this is good to merge!
Tested. Works here as expected. Thanks! |
@NickSdot thanks for the feedback 👍 |
This if statement check for a valid directory was happening to early. It was checking the string that contained the wildcards to see if it is a valid directory and always failing. Need to check after the foreach starts. fixes #1058 .
Summary
Glob patterns currently don't work. The if statement that checks if the path is a directory happens before the glob helper call.
Type of change