Skip to content

Commit 316ac6a

Browse files
authored
Cherry-pick microsoft#25548 into 1.23 release branch. (microsoft#25549)
1 parent 29c20cb commit 316ac6a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tools/ci_build/get_docker_image.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,14 @@ def main():
7171

7272
log.info(f"Image: {full_image_name}")
7373

74-
dst_deps_file = Path(args.context) / "scripts" / "deps.txt"
74+
dst_scripts_dir = Path(args.context) / "scripts"
75+
dst_deps_file = dst_scripts_dir / "deps.txt"
7576
# The docker file may provide a special deps.txt in its docker context dir and uses that one.
7677
# Otherwise, copy a generic one from this repo's cmake dir.
7778
if not dst_deps_file.exists():
7879
log.info(f"Copy deps.txt to : {dst_deps_file}")
80+
if not dst_scripts_dir.exists():
81+
dst_scripts_dir.mkdir(parents=True, exist_ok=True)
7982
shutil.copyfile(Path(REPO_DIR) / "cmake" / "deps.txt", str(dst_deps_file))
8083

8184
if "manylinux" in args.dockerfile and args.multiple_repos:

0 commit comments

Comments
 (0)