Skip to content

Commit

Permalink
fix: build-bento (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang authored Jan 11, 2025
1 parent 6dffa3d commit 2f0cab2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/comfy_pack/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,9 @@ def run(ctx, cpack: str, output_dir: str, help: bool, verbose: int):


@main.command(name="build-bento")
@click.argument("source")
@click.option("--name", help="Name of the bento service")
@click.option("--version", help="Version of the bento service")
@click.argument("source")
def bento_cmd(source: str, name: str | None, version: str | None):
"""Build a bento from the source, which can be either a .cpack.zip file or a bento tag."""
import bentoml
Expand All @@ -439,7 +439,7 @@ def bento_cmd(source: str, name: str | None, version: str | None):
else:
existing_bento = bentoml.get(source)
name = name or existing_bento.tag.name
shutil.copytree(existing_bento.path, temp_dir, dirs_exist_ok=True)
shutil.copytree(existing_bento.path_of("src"), temp_dir, dirs_exist_ok=True)
build_config = BentoBuildConfig.from_bento_dir(
existing_bento.path_of("src")
)
Expand Down

0 comments on commit 2f0cab2

Please sign in to comment.