diff --git a/src/bentoml/bentos.py b/src/bentoml/bentos.py index 0947c5b64f8..941a29a4454 100644 --- a/src/bentoml/bentos.py +++ b/src/bentoml/bentos.py @@ -402,7 +402,7 @@ def build_bentofile( """ if bentofile: try: - bentofile = resolve_user_filepath(bentofile, build_ctx) + bentofile = resolve_user_filepath(bentofile, None) except FileNotFoundError: raise InvalidArgument(f'bentofile "{bentofile}" not found') else: