superproject: Change bug reporting url to go/repo-bug for missing commit ids.

Tested the code with the following commands.

$ ./run_tests -v

error: please file a bug using go/repo-bug to report missing commit_ids for: ['art', ...
Bug: [google internal] b/186220520.
Change-Id: If075553813a0339ccf46ab3acaa38041fff552ca
This commit is contained in:
Raman Tenneti 2021-04-26 12:07:42 -07:00
parent cd89ec147a
commit f7133d5b80

View File

@ -26,13 +26,15 @@ import hashlib
import os import os
import sys import sys
from error import BUG_REPORT_URL
from git_command import GitCommand from git_command import GitCommand
from git_refs import R_HEADS from git_refs import R_HEADS
_SUPERPROJECT_GIT_NAME = 'superproject.git' _SUPERPROJECT_GIT_NAME = 'superproject.git'
_SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml' _SUPERPROJECT_MANIFEST_NAME = 'superproject_override.xml'
# URL to file bug reports for Google specific repo tool issues.
_BUG_REPORT_GOOGLE_URL = 'go/repo-bug'
class Superproject(object): class Superproject(object):
"""Get commit ids from superproject. """Get commit ids from superproject.
@ -272,8 +274,10 @@ class Superproject(object):
else: else:
projects_missing_commit_ids.append(path) projects_missing_commit_ids.append(path)
if projects_missing_commit_ids: if projects_missing_commit_ids:
# TODO(rtenneti): Come up with a solution to support non-google URL for
# filing bug reports.
print('error: please file a bug using %s to report missing commit_ids for: %s' % print('error: please file a bug using %s to report missing commit_ids for: %s' %
(BUG_REPORT_URL, projects_missing_commit_ids), file=sys.stderr) (_BUG_REPORT_GOOGLE_URL, projects_missing_commit_ids), file=sys.stderr)
return None return None
manifest_path = self._WriteManfiestFile() manifest_path = self._WriteManfiestFile()