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
composer.lock file environment dependant #2226
Comments
This should take effect. If it does not, it is a bug |
Indeed install --no-dev should not include dev requirements.. If you find it is the case please provide a proper reproduce case. |
So sorry, I verified you are right. A missconfiguration in the deployment process made me think that. |
@arnaugm I don't think so. Non-dev requirements should be installed with the same version when running |
Sure, I was thinking more on different test environments for example. But it's true that probably it would unecessary complicate the things. |
Sorry if this is not the good place to discuss this - but I seem to find little info on Google about using composer in a context where different packages/package-versions get deployed/tested to different environments. Is that a scenario which is encouraged/supported/prevented by composer? Is it better to look elsewhere for doing the configuration mgmt in that case? |
Having different packages/package-versions make the project different, at least potentially, as it can behave differently due to the difference in the third party code. In this case I would play with different git branches (if you use git) and every branch can have its own composer file. |
@arnaugm thanks for chiming in.
|
Is it possible to use different lock files depending on the environment where I'm installing the application?
My deployment process runs "composer install --no-dev" but it doesn't take effect if the lock file, generated in devel, says that the devel related packages have to be installed. I end up with uneeded devel packages in production.
If that's not possible, which would be the correct approach?
The text was updated successfully, but these errors were encountered: