Skip to content

Commit 3959a21

Browse files
authored
fix: create dir before move (#5088)
Signed-off-by: Frost Ming <[email protected]>
1 parent f27377e commit 3959a21

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/bentoml/_internal/bento/bentoml_builder.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,5 +161,6 @@ def build_git_repo(url: str, ref: str, subdirectory: str | None, dst_path: str)
161161
subprocess.check_call(build_cmd, cwd=source_dir)
162162
sdist = next(Path(source_dir).glob("dist/*.tar.gz"))
163163
logger.info(f"Built sdist {sdist.name}")
164+
os.makedirs(dst_path, exist_ok=True)
164165
shutil.move(sdist, dst_path)
165166
return sdist.name

0 commit comments

Comments
 (0)