diff options
author | snermolaev <[email protected]> | 2023-09-23 16:30:26 +0300 |
---|---|---|
committer | snermolaev <[email protected]> | 2023-09-23 16:56:49 +0300 |
commit | 23089ff66e4dade84cf4c4b697061f973575ad9f (patch) | |
tree | 22f548b4bd81bdc2a5eb20335b00f8e9f210a0bb /build/scripts/vcs_info.py | |
parent | eaff9b03851a5dc5a6f1584598c252ae585ea7a4 (diff) |
go build: substitute a.yandex-team.ru/ for GO_ARCADIA_PROJECT_PREFIX
Diffstat (limited to 'build/scripts/vcs_info.py')
-rw-r--r-- | build/scripts/vcs_info.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/build/scripts/vcs_info.py b/build/scripts/vcs_info.py index ea32d200b13..88ad7005796 100644 --- a/build/scripts/vcs_info.py +++ b/build/scripts/vcs_info.py @@ -235,7 +235,7 @@ def print_java(json_file, output_file, argv): merge_java_mf(json_file, output_file, input) -def print_go(json_file, output_file): +def print_go(json_file, output_file, arc_project_prefix): def gen_map(info): lines = [] for k, v in info.items(): @@ -247,7 +247,7 @@ def print_go(json_file, output_file): '// Code generated by vcs_info.py; DO NOT EDIT.', '', 'package main', - 'import "a.yandex-team.ru/library/go/core/buildinfo"', + 'import "{}library/go/core/buildinfo"'.format(arc_project_prefix), 'func init() {', ' buildinfo.InitBuildInfo(map[string]string {'] + gen_map(json_file) + ['})', '}'] @@ -323,7 +323,7 @@ if __name__ == '__main__': json_file = get_json(json_name) if lang == 'Go': - print_go(json_file, sys.argv[2]) + print_go(json_file, sys.argv[2], sys.argv[3]) elif lang == 'Java': print_java(json_file, sys.argv[2], sys.argv[3:]) elif lang == 'JSON': |