-
Notifications
You must be signed in to change notification settings - Fork 69
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
Environment variables broken > rc-21 #235
Comments
Issue seems to be down to the way the Drupal\Console\Core\Command\Chain\ChainCommand::execute() is looping through $environmentPlaceHolders array on line 279 in drupal-console-core . The foreach loop on line 279 was updated to this commit which tries to loop through an assoc array, even though the returned array is a regular indexed array. The error output i posted in my initial post highlights that, instead of returning a error message of environment placeholders, the error message displays the index's.
Problem below, condition
To fix this, revert back to looping thought indexed array:
By modifying it with the above change it seems to be working now. |
@prineshaz Are you planning to send a PR to have this fixed? |
Hi @jmolivas , id love to! I didn't know if i was allowed to. I shall raise a pull request shortly. Thanks! |
Hi @jmolivas , apologies if I've made a mess of the PR comments, I realised now i should've added my comments in the PR comment section. Thank you |
@prineshaz The PR #236 was merged and thanks for your contribution. This will be included in the next release. |
Great thanks! |
Issue still present in version 1.0.2. |
Hi @oukjweather i believe version 1.0.2 was cut before the above was merged. Its in master. Cheers |
@oukjweather @prineshaz Exactly the code was committed, but no release tagged yet. ETA this week on Wednesday. |
Thanks for the update @jmolivas |
This is an issue i assumed was part of drupal-console repo, but its due to the way environment vars are handled by drupal-console-core.
[console] Environment variables in chain file not working
Problem
Chaining a file with environment variables (via custom install yml file) seems to broken in version > 1.0.0-rc21 . We have a jenkins job which pulls in latest drupal/console & installs drupal 8 via a custom install yml chain file. This implements the env variables approach defined here.
My Steps to reproduce:
./vendor/bin/drupal chain --file=../console/chain/site-install-new.yml
I get the following error:
Details to include:
The text was updated successfully, but these errors were encountered: