Skip to content

Commit 2e8079d

Browse files
authored
add additional config (#44070)
1 parent d08e5cc commit 2e8079d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

eng/tools/azure-sdk-tools/packaging_tools/generate_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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}"):

0 commit comments

Comments
 (0)