-
Notifications
You must be signed in to change notification settings - Fork 5
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
composer now outputs to stderr #19
Comments
What's the The general redirection of stderr to stdout to have its output available for pattern matching looks fine though. If this was executed on an older Composer version and a real error occurred, the pattern match would just not succeed which is the same as if all required packages are already installed. |
Uh, apparently Thus without this part, this check should work on both old and new Composer versions. |
Yeah I figured it wasn't the complete solution which is why there was no PR from me. According to the composer dev's the correct check is the exit code composer/composer#3795 (comment) |
Yeah, if we where checking for an error. But in both cases (packages installed/updated or nothing) the exit code is 0, so nothing we can check for. |
Recently Composer has moved a lot of status messages from stdout to stderr, thus we need to perform a redirect here to keep pattern matching working. See composer/composer#3715 Fixes #19
Recently Composer has moved a lot of status messages from stdout to stderr, thus we need to perform a redirect here to keep pattern matching working. See composer/composer#3715 Fixes #19
Will this make it into a release anytime soon? |
There are some refactoring steps outstanding before a new release can be made. You can pull this version explicitly e.g. in your mod 'brainsware-composer',
:git => 'git://github.com/Brainsware/puppet-composer.git',
:ref => 'f8b74dfdf9e5176eb586b897c84afaf89b94607b' |
sorry for chiming in so late: I can make a new release, OR, I make travis do it, so anyone with merge access can! |
I this project still maintained? I just encountered this error from the version (0.2.5) on puppet forge. |
will do! |
released 0.2.6! |
@igalic Thanks. :-) |
Thanks you guys 😄 |
Hi,
composer recently changed to output from using stdout to stderr as you can see from this PR
https://github.com/composer/composer/pull/3715/files
this breaks composer::project as the grep fails on the onlyif
https://github.com/Brainsware/puppet-composer/blob/master/manifests/project.pp#L125
Piping stderr to stdout fixes this as below, though I haven't tested it with older composer versions.
The text was updated successfully, but these errors were encountered: