packageFileDir doesn't contain full path #38104
Replies: 2 comments
-
I have just noticed this in the
So it is OK that |
Beta Was this translation helpful? Give feedback.
-
Maybe it will help someone, but to overcome this issue in both monorepos and singlerepos, we are using this syntax: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
How are you running Renovate?
Self-hosted Renovate
If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.
GHE, 41.116.4 in Docker full image
Please tell us more about your question or problem
We follow the example on using
workingDirTemplate
of apostUpgradeTasks
: https://docs.renovatebot.com/configuration-options/#workingdirtemplateBut it always ends with this error in a monorepo (it works well in singlerepo):

If we remove the
workingDirTemplate
and update the command to be prefixed withcd
((cd {{{packageFileDir}}} && poetry install)
) then in works correctly for all repos.The debug log shows that the
{{{packageFileDir}}}
is translated to a plain directory name, not a full path as the docs specifies:You can see this also in the screenshot, check the
options.cwd
field.I guess the implementation of
packageFileDir
cannot be changed, because it would break too many existing usages, but at least the docs should be updated, and hopefully something likepackageFileDirFullPath
introduced 🙏Logs (if relevant)
Logs
Beta Was this translation helpful? Give feedback.
All reactions