Skip to content

Commit b12216e

Browse files
committed
add log
1 parent 3482fe3 commit b12216e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

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

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,9 +432,12 @@ def gen_typespec(
432432
f"tsp-client init --tsp-config {tsp_dir} --local-spec-repo {tsp_dir} --commit {head_sha} --repo {repo_url}"
433433
)
434434
if run_in_pipeline:
435-
if not os.path.exists("node_modules/@azure-tools/typespec-python"):
435+
emitter_name = "@azure-tools/typespec-python"
436+
if not os.path.exists(f"node_modules{emitter_name}"):
436437
_LOGGER.info("install dependencies only for the first run")
437438
check_output("tsp-client install-dependencies", stderr=STDOUT, shell=True)
439+
else:
440+
_LOGGER.info(f"skip install since {emitter_name} is already installed")
438441
cmd += " --skip-install --debug"
439442
else:
440443
cmd += " --debug"

0 commit comments

Comments
 (0)