Post Upgrade Command Not Allowed Even Though It Should Be #25607
Replies: 3 comments
-
Hi there, This issue or discussion is missing some logs, making it difficult or impossible to help you. Depending on which situation applies follow one, some or all of these instructions. No logs at allIf you haven't posted any log yet, we need you to find and copy/paste the log into the issue template. Finding logs on hosted appSelect me to read instructionsIf you use the Renovate app (GitHub):
Finding logs when self-hostingSelect me to read instructionsIf you're running self-hosted, run with Insufficient logsSelect me to read instructionsIf you already gave us a log, and the Renovate team said it's not enough, then follow the instructions from the No logs at all section. Formatting your logsSelect me to read instructionsPlease put your logs in a
Good luck, The Renovate team |
Beta Was this translation helpful? Give feedback.
-
Need logs showing:
|
Beta Was this translation helpful? Give feedback.
-
I do not have access to the logs. However, the problem seems to be resolved. We removed the Unfortunately, I cannot reconstruct the message Renovate posted that led to us trying to change the directory in the first place. I consider this post resolved for now. |
Beta Was this translation helpful? Give feedback.
-
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
37.45.0
If you're self-hosting Renovate, select which platform you are using.
GitLab self-hosted
Was this something which used to work for you, and then stopped?
I never saw this working
Wanted end result.
We enabled post upgrade commands and want to use them to update Angular in a subdirectory. For this, we want to switch directories using the
cd <subdir>
command, but it is not recognized as an allowed command.However, because our frontend is located in a
frontend
subdirectory, npm complains that it cannot find the needed files.We thought, adding the
cd <subdir>
command should allow us to switch directories, but Renovate says, the command is not allowed.What you tried so far.
We followed the example from the Renovate docs for allowPostUpgradeCommandTemplating.
Our config.js is currently configured like this:
It looks like Renovate is able to run the
npm ci
andnpx
commands but changing the directory does not work, which is why running the npm commands does not work:The regex for the
cd
command should match our needs. I have tested that using regexr.com:Relevant debug logs
Logs
Beta Was this translation helpful? Give feedback.
All reactions