Skip to content

Workaround Presets

workarounds:all

A collection of workarounds for known problems with packages.

{
  "extends": [
    "workarounds:mavenCommonsAncientVersion",
    "workarounds:ignoreSpringCloudNumeric",
    "workarounds:ignoreWeb3jCoreWithOldReleaseTimestamp",
    "workarounds:ignoreHttp4sDigestMilestones",
    "workarounds:typesNodeVersioning",
    "workarounds:reduceRepologyServerLoad",
    "workarounds:doNotUpgradeFromAlpineStableToEdge",
    "workarounds:supportRedHatImageVersion"
  ],
  "ignoreDeps": []
}

workarounds:mavenCommonsAncientVersion

Fix some problems with very old Maven commons versions.

{
  "packageRules": [
    {
      "matchDatasources": [
        "maven",
        "sbt-package"
      ],
      "matchPackagePrefixes": [
        "commons-"
      ],
      "allowedVersions": "!/^200\\d{5}(\\.\\d+)?/"
    }
  ]
}

workarounds:ignoreSpringCloudNumeric

Ignore spring cloud 1.x releases.

{
  "packageRules": [
    {
      "matchDatasources": [
        "maven"
      ],
      "matchPackageNames": [
        "org.springframework.cloud:spring-cloud-starter-parent"
      ],
      "allowedVersions": "/^[A-Z]/"
    }
  ]
}

workarounds:ignoreWeb3jCoreWithOldReleaseTimestamp

Ignore web3j 5.0.0 release.

{
  "packageRules": [
    {
      "matchDatasources": [
        "maven"
      ],
      "matchPackageNames": [
        "org.web3j:core"
      ],
      "allowedVersions": "!/^5\\.0\\.0/"
    }
  ]
}

workarounds:ignoreHttp4sDigestMilestones

Ignore http4s digest-based 1.x milestones.

{
  "packageRules": [
    {
      "matchManagers": [
        "sbt"
      ],
      "matchPackagePrefixes": [
        "org.http4s:"
      ],
      "allowedVersions": "!/^1\\.0-\\d+-[a-fA-F0-9]{7}$/"
    }
  ]
}

workarounds:typesNodeVersioning

Use node versioning for @types/node.

{
  "packageRules": [
    {
      "matchManagers": [
        "npm"
      ],
      "matchPackageNames": [
        "@types/node"
      ],
      "versioning": "node"
    }
  ]
}

workarounds:reduceRepologyServerLoad

Limit concurrent requests to reduce load on Repology servers until we can fix this properly, see issue #10133.

{
  "hostRules": [
    {
      "matchHost": "repology.org",
      "concurrentRequestLimit": 1
    }
  ]
}

workarounds:doNotUpgradeFromAlpineStableToEdge

Do not upgrade from Alpine stable to edge.

{
  "packageRules": [
    {
      "matchDatasources": [
        "docker"
      ],
      "matchPackageNames": [
        "alpine"
      ],
      "matchCurrentVersion": "<20000000",
      "allowedVersions": "<20000000"
    }
  ]
}

workarounds:supportRedHatImageVersion

Use specific versioning for Red Hat-maintained container images

{
  "packageRules": [
    {
      "matchDatasources": [
        "docker"
      ],
      "matchPackagePrefixes": [
        "registry.access.redhat.com/rhceph/",
        "registry.access.redhat.com/rhgs3/",
        "registry.access.redhat.com/rhel7",
        "registry.access.redhat.com/rhel8/",
        "registry.access.redhat.com/rhel9/",
        "registry.access.redhat.com/rhscl/",
        "registry.access.redhat.com/ubi7",
        "registry.access.redhat.com/ubi8",
        "registry.access.redhat.com/ubi9",
        "redhat/"
      ],
      "matchPackageNames": [
        "registry.access.redhat.com/rhel",
        "registry.access.redhat.com/rhel-atomic",
        "registry.access.redhat.com/rhel-init",
        "registry.access.redhat.com/rhel-minimal"
      ],
      "versioning": "redhat"
    }
  ]
}