Composer Not Found in Renovate Environment #24417
Unanswered
liby
asked this question in
Request Help
Replies: 1 comment 11 replies
-
Questions:
|
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
If you're self-hosting Renovate, select which platform you are using.
None
Was this something which used to work for you, and then stopped?
I never saw this working
Wanted end result.
I want to successfully run
composer install
as apostinstall
script when Renovate updates my pnpm-lock.yaml. My project uses both pnpm for JavaScript dependencies and Composer for PHP dependencies.What you tried so far.
In my project, I have a postinstall script in my package.json that runs
composer install
to install PHP dependencies. This works fine when I runpnpm install
locally or in my CI/CD environment. However, when Renovate runspnpm install
, it fails with a "composer: not found" error. This suggests that Composer is not available in the Renovate environment.Here is the
postinstall
script from my package.json:And here is the error message from Renovate:
I'm seeking advice on how to ensure
composer install
can be successfully executed as apostinstall
script in the Renovate environment when updating pnpm dependencies.Relevant debug logs
Logs
Beta Was this translation helpful? Give feedback.
All reactions