Skip to content

Commit

Permalink
docs(versioning): remove versionScheme references (#11397)
Browse files Browse the repository at this point in the history
Co-authored-by: Jamie Magee <jamie.magee@gmail.com>
  • Loading branch information
scop and JamieMagee committed Aug 23, 2021
1 parent 090df60 commit aa2607c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/usage/modules/versioning.md
Expand Up @@ -12,12 +12,12 @@ It's impossible to automatically detect **all** versioning schemes, so sometimes
You can manually configure/override the `versioning` value for a particular dependency.
You generally won't need to override the defaults for ecosystems which enforce a strict version scheme like `npm`.

Configuring or overriding the default `versionScheme` can be particularly helpful for ecosystems like Docker/Kubernetes/Helm, where versioning is barely a "convention".
Configuring or overriding the default `versioning` can be particularly helpful for ecosystems like Docker/Kubernetes/Helm, where versioning is barely a "convention".

## General concepts behind overriding versioning

- Although you can reconfigure versioning per-manager or per-datasource, it's unlikely that such a broad change would ever be needed
- More commonly you would need to configure `versionScheme` for individual packages or potentially package patterns
- More commonly you would need to configure `versioning` for individual packages or potentially package patterns
- The best way to do this is with `packageRules`, with a combination of `matchManagers`, `matchDatasources`, `matchPackageNames` and `matchPackagePatterns`

## Examples of versioning overrides
Expand Down Expand Up @@ -45,7 +45,7 @@ The configuration below overrides Renovate's default `docker` versioning for the
"packageRules": [
{
"matchPackageNames": ["foo/bar"],
"versionScheme": "regex:^(?<compatibility>.*)-v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$"
"versioning": "regex:^(?<compatibility>.*)-v?(?<major>\\d+)\\.(?<minor>\\d+)\\.(?<patch>\\d+)?$"
}
]
}
Expand Down

0 comments on commit aa2607c

Please sign in to comment.