Skip to content

Commit 5d9f685

Browse files
authored
fix: only regard the positional arg as build ctx if it is a local dir (#5322)
Signed-off-by: Frost Ming <me@frostming.com>
1 parent a287ebc commit 5d9f685

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bentoml_cli/bentos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,7 @@ def build( # type: ignore (not accessed)
440440
labels_dict[key] = label_value
441441

442442
service: str | None = None
443-
if ":" in build_ctx:
443+
if ":" in build_ctx or not os.path.isdir(build_ctx):
444444
service = build_ctx
445445
build_ctx = "."
446446

0 commit comments

Comments
 (0)