Skip to content

Commit

Permalink
fix: create dir before move (#5088)
Browse files Browse the repository at this point in the history
Signed-off-by: Frost Ming <me@frostming.com>
  • Loading branch information
frostming authored Nov 15, 2024
1 parent f27377e commit 3959a21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/bentoml/_internal/bento/bentoml_builder.py
Original file line number Diff line number Diff line change
Expand Up @@ -161,5 +161,6 @@ def build_git_repo(url: str, ref: str, subdirectory: str | None, dst_path: str)
subprocess.check_call(build_cmd, cwd=source_dir)
sdist = next(Path(source_dir).glob("dist/*.tar.gz"))
logger.info(f"Built sdist {sdist.name}")
os.makedirs(dst_path, exist_ok=True)
shutil.move(sdist, dst_path)
return sdist.name

0 comments on commit 3959a21

Please sign in to comment.