Deploy failed - Composer

yes only on deploy, on local is all ok.

yes I have done that, delete composer.lock and rm -rf vendor && composer install, but no luck.

what else I can try to do?

in the meantime, I am trying with a brand new trellis/bedrock/sage project, but with composer 1 (because I think that I am getting mad with composer 2).

is there a way in trellis to force Composer 1.x to be installed instead of composer 2?

i saw this topic between you and @JordanC26, but it is not clear if at the end this workaround worked or not.