Skip to content
Discussion options

You must be logged in to vote

Why it doesn't work

group:jacksonMonorepo :- it's a preset whose body is a packageRules array

{
  packageRules: [
    {
      extends: [`monorepo:${monorepo}`],   // e.g. monorepo:jackson
      groupName: `${monorepo} monorepo`,
      matchUpdateTypes: nonPinUpdateTypes,
    },
  ],
}

So when you put "extends": ["group:jacksonMonorepo"] inside a packageRule, Renovate tries to merge a packageRules array into a single package rule. packageRules nested inside a packageRule, which doesn't make sense.

That's what the you should not extend "group:" presets warning is guarding against.

The fix

Build the rule yourself from the monorepo: preset

monorepo:jackson is just match criteria (matchSourceUrls

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@felipecrs
Comment options

Answer selected by felipecrs
Comment options

You must be logged in to vote
1 reply
@RahulGautamSingh
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants