Skip to content

Conversation

@W0rma
Copy link
Contributor

@W0rma W0rma commented Mar 11, 2025

Fixes #6833

https://getcomposer.org/doc/07-runtime.md#knowing-the-path-in-which-a-package-is-installed is used to determine the vendor directory of the behat/gherkin composer package.
This way it is no longer necessary to work with paths relative to some source files which was broken because behat/gherkin:4.12 relocated some source files.

@W0rma W0rma force-pushed the fix-gherkin-i18n-path branch from 9cb8593 to 426e50c Compare March 11, 2025 11:17
@W0rma W0rma marked this pull request as ready for review March 11, 2025 11:21
…herkin

This makes the determination of the include path for the i18n file independent from the location of some class of this package.
That's especially helpful because v4.12 relocated some source files which broke the previous approach.
@W0rma W0rma force-pushed the fix-gherkin-i18n-path branch from 426e50c to a4c6b09 Compare March 11, 2025 13:08
@W0rma
Copy link
Contributor Author

W0rma commented Mar 28, 2025

@Naktibalda @TavoNiievez What's your opinion here?

Currently, test pipelines for some codeception modules fail if the latest behat/gherkin version is installed, f.e. https://github.com/Codeception/module-doctrine/actions/runs/13508538018/job/37743638356

@TavoNiievez
Copy link
Member

TavoNiievez commented Mar 28, 2025

@W0rma If this is the only place in the code where composer-runtime-api is going to be used I would prefer to create a simple if with file_exists.

@W0rma
Copy link
Contributor Author

W0rma commented Mar 30, 2025

@TavoNiievez Thank you for your reply.

I created the new PR #6839 which uses a much more cleaner way to fix the issue.

@W0rma W0rma closed this Mar 30, 2025
@W0rma W0rma deleted the fix-gherkin-i18n-path branch April 2, 2025 04:22
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.

Incorrect path for behat i18n.php file

2 participants