File tree Expand file tree Collapse file tree
generation/new_client_hermetic_build Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -61,10 +61,10 @@ def main(ctx):
6161 required = True ,
6262 type = str ,
6363 default = None ,
64- help = "Path to proto file from the root of the googleapis repository to the"
65- "directory that contains the proto files (without the version)."
64+ help = "Path to proto file from the root of the googleapis repository to the "
65+ "directory that contains the proto files (including the version). "
6666 "For example, to generate the library for 'google/maps/routing/v2', "
67- "then you specify this value as 'google/maps/routing'" ,
67+ "then you specify this value as 'google/maps/routing/v2 '" ,
6868)
6969@click .option (
7070 "--product-docs" ,
@@ -221,9 +221,10 @@ def add_new_library(
221221 version_re = re .compile (r"v\d[\w\d]*" )
222222 is_library_version = lambda p : version_re .match (p .split ("/" )[- 1 ]) is not None
223223 if not is_library_version (proto_path ):
224- raise ValueError (
225- "Only versioned proto_paths are supported. "
226- "For example `google/datastore/v1` instead of `google/datastore`."
224+ print (
225+ f"WARNING: proto_path '{ proto_path } ' does not end with a version (e.g., v1). "
226+ "Please ensure this is intentional and that this represents a non-versioned "
227+ "or custom proto path."
227228 )
228229
229230 new_library = {
You can’t perform that action at this time.
0 commit comments