Skip to content
This repository has been archived by the owner on May 9, 2018. It is now read-only.

Problem with Drush/Exec[drush.autocomplete.install]? #4

Open
SummittDweller opened this issue May 2, 2014 · 1 comment
Open

Problem with Drush/Exec[drush.autocomplete.install]? #4

SummittDweller opened this issue May 2, 2014 · 1 comment

Comments

@SummittDweller
Copy link

I'm trying to provision a precise64 box with Drush using this module but I must have a dependency issue somewhere in the mix? On my initial provisioning attempt I consistently get this:

Notice: /Stage[main]/Drush/Exec[drush.autocomplete.install]/returns: executed successfully
Notice: /Stage[main]/Drush/Exec[drush.autocomplete.source]/returns: bash: /etc/bash_completion.d/drush.complete.sh: No such file or directory
Error: bash -c "source /etc/bash_completion.d/drush.complete.sh" returned 1 instead of one of [0]
Error: /Stage[main]/Drush/Exec[drush.autocomplete.source]/returns: change from notrun to 0 failed: bash -c "source /etc/bash_completion.d/drush.complete.sh" returned 1 instead of one of [0]

But on subsequent provisioning attempts these execs run without error.

I'm trying to understand the intent of the command within drush.autocomplete.install but it's not entirely clear to me. In my case the php -i | grep... portion of that command returns:

/usr/share/php
/usr/share/pear

But the later of these, /usr/share/pear does not exist. Should it?

I've tried running the subject command manually after provisioning and have had limited success. Specifically, I'm able to build a suitable "ln -s -f..." statement and create the target link using that as long as I do so under sudo, but this is clearly not happening during my Puppet run.

Does any of this make sense? Any clue what might be wrong here? Thanks in advance.

@erikwebb
Copy link
Owner

erikwebb commented May 4, 2014

Drush is actually dropping PEAR support soon. I really need to rewrite this module to use Composer instead.

@see https://github.com/drush-ops/drush#installupdate---composer

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

No branches or pull requests

2 participants