From f7133d5b8083899f69fe45b763f1d90f7c6fae08 Mon Sep 17 00:00:00 2001 From: Raman Tenneti Date: Mon, 26 Apr 2021 12:07:42 -0700 Subject: [PATCH] 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 --- git_superproject.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/git_superproject.py b/git_superproject.py index 89320971..39a18f0b 100644 --- a/git_superproject.py +++ b/git_superproject.py @@ -26,13 +26,15 @@ import hashlib import os import sys -from error import BUG_REPORT_URL from git_command import GitCommand from git_refs import R_HEADS _SUPERPROJECT_GIT_NAME = 'superproject.git' _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): """Get commit ids from superproject. @@ -272,8 +274,10 @@ class Superproject(object): else: projects_missing_commit_ids.append(path) 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' % - (BUG_REPORT_URL, projects_missing_commit_ids), file=sys.stderr) + (_BUG_REPORT_GOOGLE_URL, projects_missing_commit_ids), file=sys.stderr) return None manifest_path = self._WriteManfiestFile()