Skip to content
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 always gets dev dependencies when executed manually #1474

Open
bserem opened this issue Mar 6, 2020 · 4 comments
Open

Composer always gets dev dependencies when executed manually #1474

bserem opened this issue Mar 6, 2020 · 4 comments

Comments

@bserem
Copy link
Contributor

bserem commented Mar 6, 2020

I am having a very strange issue with BOA (head):

When I add a composer based platform from Aegir all is fine, the resulting platform has no dev dependencies.
When I go from the CLI, as user o1.ftp and run composer install --no-dev I always get dev dependencies installed, and this results to drush 9/10 getting added.

I can easily go on and remove vendor/drush but I am wondering why something like this happens and how I could fix it.

$ composer -V
Composer version 1.9.3 2020-02-04 12:58:49
@omega8cc
Copy link
Owner

Composer is not part of BOA itself, just third party tool included. It shouldn't be a problem, since Aegir will remove the Drush copy on platform verify anyway.

@omega8cc
Copy link
Owner

Ah, you meant that things are different with limited shell. Nothing major, but still interesting why the flag is not respected.

@bserem
Copy link
Contributor Author

bserem commented Jul 23, 2020

It's not major because it is easy to go ahead and delete vendor/drush manually, but if this is not done then Aegir will eventually fail because it will pick up Drush 9.

I did not think about the limited shell, I'll too try to figure out why it acts like that.

@omega8cc
Copy link
Owner

Aegir will not fail, because it will delete local drush on platform verify, which is special case, because it doesn't bootstrap Drupal at all, since there is no site context used, only codebase / platform context. Still, composer shouldn't behave differently.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants