File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
eng/tools/azure-sdk-tools/packaging_tools Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -514,10 +514,10 @@ def gen_typespec(
514514 content ["options" ]["@azure-tools/typespec-python" ]["api-version" ] = api_version
515515 with open (tspconfig , "w" ) as file_out :
516516 yaml .dump (content , file_out )
517- cmd = f"{ tsp_client } init --tsp-config { tsp_dir } --local-spec-repo { tsp_dir } --commit { head_sha } --repo { repo_url } "
517+ cmd = f"{ tsp_client } init --update-if-exists -- tsp-config { tsp_dir } --local-spec-repo { tsp_dir } --commit { head_sha } --repo { repo_url } "
518518 else :
519519 tsp_config_url = f"{ rest_repo_url } /blob/{ head_sha } /{ typespec_relative_path } /tspconfig.yaml"
520- cmd = f"{ tsp_client } init -c { tsp_config_url } "
520+ cmd = f"{ tsp_client } init --update-if-exists - c { tsp_config_url } "
521521 if run_in_pipeline :
522522 emitter_name = "@azure-tools/typespec-python"
523523 if not os .path .exists (f"node_modules/{ emitter_name } " ):
You can’t perform that action at this time.
0 commit comments