File tree 1 file changed +5
-2
lines changed
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 64
64
DEFAULT_MIN_SUPPORTED_JAVA_VERSION = 8
65
65
METADATA = "metadata"
66
66
LIBRARIES_BOM_VERSION = "libraries_bom_version"
67
+ LIBRARIES_BOM_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARIES_BOM_VERSION"
67
68
68
69
69
70
def format_code (
@@ -501,8 +502,10 @@ def common_templates(
501
502
split_repo = not monorepo
502
503
repo_metadata = metadata ["repo" ]
503
504
repo_short = repo_metadata ["repo_short" ]
504
- if LIBRARIES_BOM_VERSION in kwargs :
505
- kwargs [METADATA ][LIBRARIES_BOM_VERSION ] = kwargs .get (LIBRARIES_BOM_VERSION )
505
+ if os .getenv (LIBRARIES_BOM_VERSION_ENV_KEY , default = None ) is not None :
506
+ kwargs [METADATA ][LIBRARIES_BOM_VERSION ] = os .getenv (
507
+ LIBRARIES_BOM_VERSION_ENV_KEY
508
+ )
506
509
# Special libraries that are not GAPIC_AUTO but in the monorepo
507
510
special_libs_in_monorepo = [
508
511
"java-translate" ,
You can’t perform that action at this time.
0 commit comments