Skip to content

Commit

Permalink
fix(workarounds): add matchDepNames to some workarounds (#28559)
Browse files Browse the repository at this point in the history
  • Loading branch information
rarkins authored Apr 21, 2024
1 parent ae1d892 commit b5e522c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions lib/config/presets/internal/workarounds.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ export const presets: Record<string, Preset> = {
doNotUpgradeFromAlpineStableToEdge: {
description: 'Do not upgrade from Alpine stable to edge.',
packageRules: [
{
allowedVersions: '<20000000',
matchCurrentVersion: '!/^\\d{8}$/',
matchDatasources: ['docker'],
matchDepNames: ['alpine'],
},
{
allowedVersions: '<20000000',
matchCurrentVersion: '!/^\\d{8}$/',
Expand Down Expand Up @@ -127,6 +133,23 @@ export const presets: Record<string, Preset> = {
versioning:
'regex:^(?<major>\\d+)?(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?([\\._+](?<build>(\\d\\.?)+)(LTS)?)?(-(?<compatibility>.*))?$',
},
{
allowedVersions: '/^(?:8|11|17|21)(?:\\.|-|$)/',
description:
'Limit Java runtime versions to LTS releases. To receive all major releases add `workarounds:javaLTSVersions` to the `ignorePresets` array.',
matchDatasources: ['docker', 'java-version'],
matchDepNames: [
'eclipse-temurin',
'amazoncorretto',
'adoptopenjdk',
'openjdk',
'java',
'java-jre',
'sapmachine',
],
versioning:
'regex:^(?<major>\\d+)?(\\.(?<minor>\\d+))?(\\.(?<patch>\\d+))?([\\._+](?<build>(\\d\\.?)+)(LTS)?)?(-(?<compatibility>.*))?$',
},
],
},
mavenCommonsAncientVersion: {
Expand Down

0 comments on commit b5e522c

Please sign in to comment.