diff --git a/lib/manager/bazel/update.js b/lib/manager/bazel/update.js index f1ed91f97a1cc63dec69bcc3f91e757c9a9aa432..92afc5500903950fa93abfae9c58029b7a72b45e 100644 --- a/lib/manager/bazel/update.js +++ b/lib/manager/bazel/update.js @@ -19,7 +19,7 @@ async function updateDependency(fileContent, upgrade) { if (upgrade.currentDigest && upgrade.updateType !== 'digest') { newDef = newDef.replace( /commit = "[^"]+".*?\n/, - `commit = "${upgrade.newDigest}", # ${upgrade.newValue}\n` + `commit = "${upgrade.newDigest}", # ${upgrade.newValue}\n` ); } } else if (upgrade.depType === 'http_archive') { diff --git a/test/manager/bazel/__snapshots__/update.spec.js.snap b/test/manager/bazel/__snapshots__/update.spec.js.snap index deed3d03030698c460e606f57bb6c093f6a97535..d3d5526a9710d6899f35a11a7ffed85b915e972e 100644 --- a/test/manager/bazel/__snapshots__/update.spec.js.snap +++ b/test/manager/bazel/__snapshots__/update.spec.js.snap @@ -13,7 +13,7 @@ go_repository( go_repository( name = \\"com_github_google_uuid\\", importpath = \\"github.com/google/uuid\\", - commit = \\"aaa09d789f3dba190787f8b4454c7d3c936fe123\\", # v1.0.3 + commit = \\"aaa09d789f3dba190787f8b4454c7d3c936fe123\\", # v1.0.3 ) go_repository( diff --git a/test/manager/bazel/update.spec.js b/test/manager/bazel/update.spec.js index 93c99f6397ffb29d5a4020d2f8a79ce5c6f822a1..708b99e936a87f4c3b6bc2f036f3b0031170fd15 100644 --- a/test/manager/bazel/update.spec.js +++ b/test/manager/bazel/update.spec.js @@ -51,7 +51,7 @@ describe('manager/bazel/update', () => { expect(res).toMatchSnapshot(); expect(res).not.toEqual(content); expect( - res.includes('"aaa09d789f3dba190787f8b4454c7d3c936fe123", # v1.0.3') + res.includes('"aaa09d789f3dba190787f8b4454c7d3c936fe123", # v1.0.3') ).toBe(true); }); it('updates http archive', async () => {