-
Notifications
You must be signed in to change notification settings - Fork 26
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
Make sure that composer file exists before running #42
Conversation
Thanks for looking into it! If that's enough to make it work I'm happy with it, but it looks like the tests are failing. I would also add one test with Flex in the CI, for example creating a skeleton symfony app which will have flex, add bamarni/composer-bin-plugin and then require a package with it |
Seems like I'm breaking assertions: // make sure the proxy command didn't instantiate Composer
$this->assert->assertNull($this->getComposer(false));
$this->assert->assertNull($this->getApplication()->getComposer(false)); What is exact meaning of these assertions? Can I remove them? |
Edit: I think they can be removed yes |
I fixed the tests.
It sounds like a good idea, but I don't really know how to do it. It would require installing I added an assertion that makes sure that |
Many thanks for the work :)
It would be something along the lines of:
done directly in |
I'm worried that this will be failing until we merge this pull request, because it will be requiring
In other words now and in the future to test whether a fix related to Symfony Flex works you will need to merge it first. This also apply to finding regressions. For some unrelated, but breaking changes you will see CI failing only after a merge. I can add it, just want to make sure that we both see the issue ;) . |
Indeed. I'm however not a big fan of having tests where you need to merge them to check if they works. Maybe we can find a way around it, what about something like:
? |
Yes, that should work - later today I will try to add it. Do you think this should be also changed? |
yes please |
It still won't work :/ . Packagist doesn't know about pull-request until it gets merged. The only solution I see is to depend on direct link to a repository from where the pull request originated. That requires manual I guess it may be good "to do" for later. |
Let's try it then :) Thank you very much for looking into this |
Looks like the tests passed :) |
The source of issue in #39 appears to be custom
RequireCommand
in Symfony Flex.More specifically:
Making sure that composer file exists fixes the issue.
Should I add tests and document it or do you see some better solution?
I have tried disabling plugins in command that
BinCommand
is running, but I think plugins are already loaded at that time, so it has no effect.