From 6a13fd0dc42da8720a6596e7406a834ca7c51228 Mon Sep 17 00:00:00 2001
From: Preston Van Loon <preston@prysmaticlabs.com>
Date: Fri, 1 Mar 2019 15:41:06 -0500
Subject: [PATCH] fix: Use two spaces for bazel go_repository comments (#3287)

* Update update.js

* Update update.spec.js

* Update update.spec.js.snap
---
 lib/manager/bazel/update.js                          | 2 +-
 test/manager/bazel/__snapshots__/update.spec.js.snap | 2 +-
 test/manager/bazel/update.spec.js                    | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/manager/bazel/update.js b/lib/manager/bazel/update.js
index f1ed91f97a..92afc55009 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 deed3d0303..d3d5526a97 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 93c99f6397..708b99e936 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 () => {
-- 
GitLab