-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
require pear in pecl file #331
base: master
Are you sure you want to change the base?
Conversation
It looks like my original fix might not actually work, even though it solved the problem on my dev host, it then couldn't find |
Could not reproduce with puppet 4.10.0 (agent and master) and the following manifest in /etc/puppetlabs/code/environments/production/manifests/php.pp:
The extension is installed correctly:
Looks like an autoload issue on your side. Are your modules in the standard path, under production (or current) environment? |
At the moment it seems like it only causes problems when I use I don't know if it's actually related to the error that it prints before that. Here is some context:
|
What's the exact reproduction? Do you just invoke |
It does it for tests under Just to be clear, this is running in our codebase, not this module. I wonder if it's actually a problem with |
Can you please clarify? Are you saying that this module trips up rspec-puppet running the custom tests in your own codebase? Is this module pulled as a dependency there? |
Yes, the problem happens running our own tests where this module is a dependency, and only for hosts tests. So I'm actually wondering if this is a problem with |
If you can create a clone of your environment and strip it down to the bare essentials that will still demonstrate this issue, that would be very helpful to have. |
@jarro2783 can you please rebase against our latest master? We added acceptance tests and should now be able to reproduce this. |
This fixes the
pecl
provider autoloading thepear
provider. On Puppet 4.9.4, I get the following error:It doesn't seem to happen on Puppet 3. This is fixed by requiring
pear
explicitly in thepecl
provider code.