We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3482fe3 commit b12216eCopy full SHA for b12216e
1 file changed
tools/azure-sdk-tools/packaging_tools/generate_utils.py
@@ -432,9 +432,12 @@ def gen_typespec(
432
f"tsp-client init --tsp-config {tsp_dir} --local-spec-repo {tsp_dir} --commit {head_sha} --repo {repo_url}"
433
)
434
if run_in_pipeline:
435
- if not os.path.exists("node_modules/@azure-tools/typespec-python"):
+ emitter_name = "@azure-tools/typespec-python"
436
+ if not os.path.exists(f"node_modules{emitter_name}"):
437
_LOGGER.info("install dependencies only for the first run")
438
check_output("tsp-client install-dependencies", stderr=STDOUT, shell=True)
439
+ else:
440
+ _LOGGER.info(f"skip install since {emitter_name} is already installed")
441
cmd += " --skip-install --debug"
442
else:
443
cmd += " --debug"
0 commit comments