mirror of
https://github.com/renovatebot/renovate.git
synced 2025-01-12 06:56:24 +00:00
fix(bazel): better massaging
This commit is contained in:
parent
22e0434a7b
commit
892a8f9246
1 changed files with 6 additions and 2 deletions
|
@ -115,8 +115,12 @@ export async function updateDependency(
|
||||||
upgrade.newValue
|
upgrade.newValue
|
||||||
);
|
);
|
||||||
const massages = {
|
const massages = {
|
||||||
'bazel-skylib.0.9.0': 'bazel_skylib-0.9.0',
|
'bazel-skylib.': 'bazel_skylib-',
|
||||||
'0.19.5/rules_go-0.19.5.tar.gz': 'v0.19.5/rules_go-v0.19.5.tar.gz',
|
'/bazel-gazelle/releases/download/0':
|
||||||
|
'/bazel-gazelle/releases/download/v0',
|
||||||
|
'/bazel-gazelle-0': '/bazel-gazelle-v0',
|
||||||
|
'/rules_go/releases/download/0': '/rules_go/releases/download/v0',
|
||||||
|
'/rules_go-0': '/rules_go-v0',
|
||||||
};
|
};
|
||||||
for (const [from, to] of Object.entries(massages)) {
|
for (const [from, to] of Object.entries(massages)) {
|
||||||
newDef = newDef.replace(from, to);
|
newDef = newDef.replace(from, to);
|
||||||
|
|
Loading…
Reference in a new issue