fix(bazel): better massaging

This commit is contained in:
Rhys Arkins 2020-01-15 13:03:16 +01:00
parent 22e0434a7b
commit 892a8f9246

View file

@ -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);