Skip to content

Commit 1e3ce6d

Browse files
committed
fix
1 parent caa2699 commit 1e3ce6d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,8 @@ def gen_typespec(typespec_relative_path: str, spec_folder: str, head_sha: str, r
387387
# call scirpt to generate sdk
388388
try:
389389
tsp_dir = (Path(spec_folder) / typespec_relative_path).resolve()
390-
check_output(f"npx tsp-client init --tsp-config {tsp_dir} --local-spec-repo {tsp_dir} --commit {head_sha} --repo {rest_repo_url.strip('https://github.com/')}", shell=True)
390+
repo_url = rest_repo_url.replace('https://github.com/', "")
391+
check_output(f"npx tsp-client init --tsp-config {tsp_dir} --local-spec-repo {tsp_dir} --commit {head_sha} --repo {repo_url} --debug", shell=True)
391392
except CalledProcessError as e:
392393
_LOGGER.error(f"Failed to generate sdk from typespec: {e.output.decode('utf-8')}")
393394
raise e

0 commit comments

Comments
 (0)