How to setup packageRules for a monorepo #31399
-
What would you like help with?I would like help with my configuration How are you running Renovate?Self-hosted If you're self-hosting Renovate, tell us which platform (GitHub, GitLab, etc) and which version of Renovate.Github Actions Please tell us more about your question or problemI'm trying to configure I tried {
gitAuthor: 'Renovate Bot <[email protected]>',
// We use dependabot for everything else currently
enabledManagers: ['deps-edn'],
labels: ["dependencies", "renovate", "deps-edn"],
"extends": [
"config:recommended",
],
packageRules: [
{
matchPackageNames: ["software.amazon.awssdk", "aws-java-sdk-v2"],
schedule: ["on the first day of the month"]
}
]
} But I wasn't sure whether that was the correct way to match package names it is a monorepo being updated, not just a single package? This seems like it could be good to add to the docs. Logs (if relevant)Logs
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Hi there, Please give us specific logs, so we can help you more. If you self-host Renovate: make sure you run Renovate with Find the relevant dependency/dependencies in the log message, and copy/paste those parts into this discussion. If you do not know which bits we need, you can copy/paste the full log message. Read the Renovate docs, Troubleshooting to learn more about getting the docs, and getting the correct type of logs. Thanks, the Renovate team |
Beta Was this translation helpful? Give feedback.
-
Hi there, Get your discussion fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. Discussions without reproductions are less likely to be converted to Issues. Please follow these steps:
If you need help with running renovate on your minimal reproduction repository, please refer to our Running Renovate guide. The Renovate team |
Beta Was this translation helpful? Give feedback.
-
I was able to target the updates with the following config: packageRules: [
{
matchPackageNames: ["software.amazon.awssdk/**"],
schedule: ["on the first day of the month"]
}
] I thought I needed my packageRules to match against the monorepo package name. I later realised that you need to match on the Maven group ID for individual artifacts. The monorepo config is only used for grouping updates, not for targeting packageRules. |
Beta Was this translation helpful? Give feedback.
I was able to target the updates with the following config:
I thought I needed my packageRules to match against the monorepo package name. I later realised that you need to match on the Maven group ID for individual artifacts. The monorepo config is only used for grouping updates, not for targeting packageRules.