-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
use voxpupuli/archive to download composer #274
Conversation
creates => $path, | ||
proxy_type => $proxy_type, | ||
proxy_server => $proxy_server, | ||
require => [Class['::php::cli'],Package['curl']], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
require Package['curl'] not needed now
) { | ||
|
||
if $caller_module_name != $module_name { | ||
warning('php::composer::auto_update is private') | ||
} | ||
|
||
$env = $proxy_type? { | ||
undef => {}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It appears this isn't puppet 3 compatible. From https://docs.puppet.com/puppet/3.8/reference/lang_conditional.html#values
Values may be any of the following:
Any literal value, with the exception of hash literals
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ow
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'll have to return undef
then.
creates => $path, | ||
proxy_type => $proxy_type, | ||
proxy_server => $proxy_server, | ||
require => Class['::php::cli'], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This dependency looks a bit odd. But it was there before, so maybe removing it will have unintended consequences.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
composer requires php to run, so this makes sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to run, but not to download. Maybe it should just be include
d instead?
rather than using a hand-crafted curl call, we use voxpupuli/archive to download composer. This has the benefit that it doesn't require us to $manage_curl. But we also remove `$environment`! This variable name is poorly chosen. Overriding it (or even just setting it to `undef`), could mean that someone's `hiera()` lookups are failing, as soon as they enter our module! This pull-request addresses #273.
$environment is not needed with archive, because archive has specific proxy settings. Just make sure you pass them through so we can set them, when you make the change. |
@edestecd |
|
rather than using a hand-crafted curl call, we use voxpupuli/archive to
download composer. This has the benefit that it doesn't require us to
$manage_curl. But we also remove
$environment
! This variable name ispoorly chosen. Overriding it (or even just setting it to
undef
), couldmean that someone's
hiera()
lookups are failing, as soon as they enterour module!
This pull-request addresses #273.