@@ -68,6 +68,7 @@ def main(ctx):
6868 "--owlbot-image" , type = str , default = "gcr.io/cloud-devrel-public-resources/owlbot-java"
6969)
7070@click .option ("--library-type" , type = str )
71+ @click .option ("--googleapis-gen-url" , type = str , default = "https://github.com/googleapis/googleapis-gen.git" )
7172def generate (
7273 api_shortname ,
7374 name_pretty ,
@@ -85,6 +86,7 @@ def generate(
8586 group_id ,
8687 owlbot_image ,
8788 library_type ,
89+ googleapis_gen_url ,
8890):
8991 cloud_prefix = "cloud-" if cloud_api else ""
9092
@@ -160,7 +162,7 @@ def generate(
160162 )
161163
162164 # get the sha256 digets for the owlbot image
163- subprocess .check_call (["docker" , "pull" , owlbot_image ])
165+ subprocess .check_call (["docker" , "pull" , "-q" , owlbot_image ])
164166 owlbot_image_digest = (
165167 subprocess .check_output (
166168 ["docker" , "inspect" , "--format='{{index .RepoDigests 0}}" , owlbot_image ,],
@@ -175,7 +177,7 @@ def generate(
175177
176178 # run owlbot copy
177179 print ("Cloning googleapis-gen..." )
178- subprocess .check_call (["git" , "clone" , "https://github.com/googleapis/googleapis-gen.git" , "./gen/googleapis-gen" ], cwd = workdir )
180+ subprocess .check_call (["git" , "clone" , "-q" , googleapis_gen_url , "./gen/googleapis-gen" ], cwd = workdir )
179181 subprocess .check_call (["docker" , "pull" , "gcr.io/cloud-devrel-public-resources/owlbot-cli:latest" ])
180182 copy_code_parameters = [
181183 "docker" ,
@@ -216,6 +218,7 @@ def generate(
216218 cwd = workdir ,
217219 )
218220 monorepo_root = (workdir / '..' ).resolve ()
221+ print ("monorepo_root=" ,monorepo_root )
219222 print ("Running the post-processor..." )
220223 subprocess .check_call (
221224 [
@@ -231,9 +234,6 @@ def generate(
231234 cwd = monorepo_root ,
232235 )
233236
234- subprocess .check_call (["rm" , "-f" , ".gitignore" ],
235- cwd = workdir )
236-
237237 # Remove irrelevant files from templates
238238 subprocess .check_call (
239239 ["bash" , "generation/update_owlbot_postprocessor_config.sh" ],
0 commit comments