Closed p3k closed 4 years ago
Our official Docker Renovate image comes with all binaries installed.
If you are using a custom image or binaries then you'll need to be responsible for making sure they're found.
That error message isn't coming from Renovate directly - it's perhaps Gradle throwing it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed soon if no further activity occurs. If this question is not done (either you plan to update it or are waiting on someone to respond) then please add a comment here to bump it and/or get the other person's attention. We aim to do our best to solve every problem. This bot is here to help us clean up issues which are no longer of use to the original poster, and not to close anything prematurely, so bump as you need!
If you are using a custom image or binaries then you'll need to be responsible for making sure they're found.
sure, and my question is about what can be done in renovate’s configuration, if anything…?
Gradle seems to be trying to find /builds/tobi/app/.gradle/yarn/yarn-v1.22.4/bin/yarn
so you need to make sure that file exists in the file system that you run Renovate/Gradle in. Maybe you need to run gradle install
prior to Renovate for example?
It's Gradle looking for this file, not Renovate - so you need to solve it with Gradle.
OK so I did this:
/builds/tobi/app/.gradle/yarn/yarn-v1.22.4/bin/yarn
to $(which yarn)
yarn policies set-version
closing this issue.
Renovate Open Source CLI
Which platform are you using?
GitLab self-hosted
What would you like to do?
We are using Gradle as our main build system, together with gradle-node-plugin and a fixed Yarn version.
This was a deliberate decision after we ran into some troubles when different people using different Yarn versions pushed their
yarn.lock
files.Besides the version string in
build.gradle
the path to this very version is defined in.yarnrc
:When running the CI pipeline Renovate does not find this path:
Certainly, we could now begin to install Gradle, i.e. Java, and our little Renovate job would become quite elaborate… Unless there might be a better way.
What is the best approach to make sure, Renovate is using this exact same version?