Closed ThomasBerends closed 9 months ago
Are you by chance running Composer as root?
From docker-php-ext-configure
, I guess these steps are run without a Docker container. That more or less implies indeed that the commands are run as root.
see composer/composer#11839 then
Hmm, weird that I didn't get any of the mentioned warnings. Bit of a shock that Bitbucket runs everything as root by default.
I've adapted the title. Shall I close the bug as well since it's not directly related to Flex?
Closing this as this is indeed not directly related to Flex.
@ThomasBerends the output snippet you shared in the issue started at the autoload generation, meaning that it was not the full composer output. The warning is one of the first things displayed by composer. https://github.com/composer/composer/pull/11842 should make that easier to notice in 2.7.1+ by also showing a warning at the time an error is reported.
@stof Can confirm this is the case. I see the warnings now indeed. Completely glossed over it due to the lack of colors in Bitbucket's output.
Thanks!
Yesterday since the release of Composer 2.7.0, pipelines started failing for me.
The error:
The steps related:
This was solved by adding
--version=2.6.6
to the Composer installation, but that's of course a temporary solution.This seems to happen on a simple Symfony 6.3 project. I haven't tested on other projects.
Full steps:
On the php:8.2 image, provided by Bitbucket.
If there's any questions, feel free to reply or I'm ThomasToSpace in the Symfony Slack.