File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 6464DEFAULT_MIN_SUPPORTED_JAVA_VERSION = 8
6565METADATA = "metadata"
6666LIBRARIES_BOM_VERSION = "libraries_bom_version"
67+ LIBRARIES_BOM_VERSION_ENV_KEY = "SYNTHTOOL_LIBRARIES_BOM_VERSION"
6768
6869
6970def format_code (
@@ -501,8 +502,10 @@ def common_templates(
501502 split_repo = not monorepo
502503 repo_metadata = metadata ["repo" ]
503504 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+ )
506509 # Special libraries that are not GAPIC_AUTO but in the monorepo
507510 special_libs_in_monorepo = [
508511 "java-translate" ,
You can’t perform that action at this time.
0 commit comments