File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
eng/tools/azure-sdk-tools/packaging_tools Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -162,6 +162,16 @@ def main(generate_input, generate_output):
162162 _LOGGER .info (
163163 f"[CODEGEN]({ readme_or_tsp } )codegen end and new package '{ folder_name } /{ package_name } ' generated"
164164 )
165+
166+ # remove additional files when we roll back generation to Swagger
167+ # NOTE: After we convert to Typespec completely, we could remove this logic block
168+ if "readme.md" in readme_or_tsp :
169+ for file_name in ["tsp-location.yaml" , "_metadata.json" ]:
170+ file_path = Path (sdk_folder , folder_name , file_name )
171+ if file_path .exists ():
172+ os .remove (str (file_path ))
173+ _LOGGER .info (f"remove additional file when roll back to swagger: { file_path } " )
174+
165175 try :
166176 package_total .add (package_name )
167177 sdk_code_path = str (Path (sdk_folder , folder_name , package_name ))
You can’t perform that action at this time.
0 commit comments