-
Notifications
You must be signed in to change notification settings - Fork 180
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
Move all files to src
and tests
#323
Comments
It will probably be simpler to exclude some directories from the archive: https://stackoverflow.com/questions/17049313/how-to-ignore-directories-with-composer |
@alexislefebvre Thanks! I found that one as well, wasn't sure if it would work. Going to test it now in #325 |
@alexislefebvre It doesn't work. Still gives the same error. So I think it's better to just split it. |
I tested it by creating a branch with a Then I installed this branch of the package:
Unfortunately, the
Maybe it's due to the fact that Composer cloned the repo instead of downloading a zip file. Maybe it works only when a tag is created. |
Why not just move it into src and tests? :) #324 |
Because I'm trying to find a simpler solution before moving all the Can you please share the steps you followed in order to have the error you mentioned in the beginning of this issue? |
@alexislefebvre Beh, it's clearly a Symfony's standard at least (adopted from the Unix world): http://fabien.potencier.org/symfony4-directory-structure.html I understand not all bundles adopt this new structure, but this is not a valid reason, in my opinion, to not adopt it for LiipFunctionalTestsBundle: if we can improve, we should... I don't touch the code of this bundle since a lot of time, and reading again the code, in the first time confused me: where should have I to look for the classes I have to use in my project? Sure, opening each folder solves the dilemma, but... I have to open both folders first. It's not immediate. I think that starting to use a more robust folder structure helps also to make a deeper refactoring that will make the bundle better: #218 |
@Aerendir the link is about a good practice for a Symfony project (with Anyway I agree with you @ruudk and @Aerendir that this is a common practice and we don't have any other option to avoid the bug repored in this issue. My only concern now is that it will break every PR. we have to check that this is worth the change. |
@alexislefebvre "Everything is a bundle in Symfony" 😝 I'm happy you agree :) |
@ruudk Why did you close this issue? |
Because I don't want to pursue with the PR anymore. I got it working without. |
Any details on how you got it working? Having the same problem with I agree that |
Is it ok if I create a PR that moves all sources to
src
and the tests intests
? This way, the tests won't get distributed with composer.I'm currently trying to migrate my Symfony 3.2 project to the Symfony 3.0 directory structure format and I'm getting weird errors like this:
The text was updated successfully, but these errors were encountered: