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

php.composer should ensure that curl is installed #39

Open
wwentland opened this issue May 8, 2015 · 4 comments
Open

php.composer should ensure that curl is installed #39

wwentland opened this issue May 8, 2015 · 4 comments

Comments

@wwentland
Copy link
Contributor

The php.composer state requires curl to be installed, but does not ensure it in any way.

@gravyboat
Copy link
Contributor

Hmm, should the composer state handle that? Or should it simply include a state coming from another formula?

@wwentland
Copy link
Contributor Author

I am not sure and would, personally, prefer a dependency on a different formula in general. This "curl-formula" would be most trivial though and it would probably make sense to simply include a "php_curl_pkg" pkg.installed state. Either way I wouldn't mind implementing this, but didn't get around to do it when I ran into this issue.

What do you think @gravyboat ? We will probably have various formulas that require some tool to be present and we would have a lot of work if we were to aim for a formula for every single one of them.

@ross-p
Copy link
Member

ross-p commented May 9, 2015

@BABILEN good catch.

I agree with you that installing curl is minimal and probably better done with something like php_curl_pkg rather than adding an external dependency to a simple curl-formula.

@gravyboat
Copy link
Contributor

@BABILEN Yeah as much as I hate to say it, I'd prefer if we just installed the dependency for the formula in the formula. I'm imagining some new user going 'okay I need the curl formula, oh now I need the os install formula' and so on and so forth. Whiteinge was kind enough to already create https://github.com/saltstack-formulas/php-formula/blob/master/php/curl.sls so I say just update the include in the php.composer state. Especially since that sort of sets the standard and it already exists.

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

No branches or pull requests

3 participants