Relocate files to remove redundant directories#288
Conversation
888f0c6 to
6ef55c7
Compare
bfd3324 to
9ff6a67
Compare
acoulton
left a comment
There was a problem hiding this comment.
@uuf6429 I rebased and force pushed this to resolve the conflict with #282 (as that PR still had the previous proposal for changing the composer.json autoload config).
The commits are still showing as yours but now showing a warning that they're unverified (as I obviously can't sign as you). Feel free to rebase and force push again to resolve that.
I have dropped the commit with the git-blame-ignore (the commit ref was outdated anyway) - AFAIK this is not actually required/appropriate for straight file moves, if you look at the blame on https://github.com/uuf6429/Gherkin/blame/chore/relocate-files/tests/ParserTest.php you'll see that it is correctly showing the history despite the file move.
I don't think that conflicts with other PRs will be an issue - the majority are old and have conflicts already anyway, and I've generally found git is usually quite reliable about resolving file renames so it should be quick enough to update anything that needs it.
9ff6a67 to
d7dc340
Compare
|
@acoulton done, thanks for taking the time to fix things. |
As expected, this needs to be updated to reflect the file having moved in Behat#288.
As expected, this needs to be updated to reflect the file having moved in Behat#288.
|
Hi, behat/gherkin v4.13.0 release has broken our CI - https://github.com/atk4/ui/actions/runs/14864378786/job/41737354734. I have verified this is the only changed dependency. If I downgrade to v4.12.0, the issue is gone. Our Behat configuration is https://github.com/atk4/ui/blob/6.0.0/behat.yml.dist. Quite minimal config. Is there a bug or do we need to change something? |
|
@mvorisek apologies for the inconvenience. This is tracked at #317 - basically, you need to either update behat or pin to behat/gherkin 4.12. In your case:
If you switch from |
|
Love your perfect guidance, thank you a lot! ❤ |
|
So to be clear, the issue is not related to this PR (it was only changing the location of test files), right? |
|
atk4/ui#2285 fixed the issue for us. This PR is probably fine. |
|
@uuf6429 it is ultimately caused by this - this PR moved the src files as well as the test files, and other packages depended on finding the i18n.php by looking relative to one of the class files. We discussed it in #290 when it was first merged, and thought we'd found a solution, but we hadn't properly anticipated the impact on non-behat users or that there will often be cases where people can get a more recent gherkin (as it has no deps) but can't get the latest Behat. |
|
@acoulton Just checked the PR and your right. I missed that whole discussion and unfortunately the PR description is not really up-to-date. :/ I'll fix that at least. |
In the subsequent version, files were moved to PSR-4 compliant paths. See Behat/Gherkin#288
In the subsequent version, files were moved to PSR-4 compliant paths. See Behat/Gherkin#288
In the subsequent version, files were moved to PSR-4 compliant paths. See Behat/Gherkin#288
In the subsequent version, files were moved to PSR-4 compliant paths. See Behat/Gherkin#288
This PR does what was suggested here. I thought it would make sense / be cleaner to make a separate PR.
Changes:
./srcis now loaded as PSR-4src/Behat/Gherkin/tosrc/tests/Behat/Gherkin/totests/./srcrepresentsBehat\Gherkin\./testsrepresentsTests\Behat\Gherkin\