Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: pre-commit autoupdate [skip ci] #4630

Merged
merged 4 commits into from
Apr 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix with statement
Signed-off-by: Frost Ming <me@frostming.com>
frostming committed Apr 2, 2024

Unverified

This user has not yet uploaded their public signing key.
commit e2bcfc392dccbb1e407c410fd6f674e014240a31
8 changes: 3 additions & 5 deletions src/bentoml/_internal/container/__init__.py
Original file line number Diff line number Diff line change
@@ -150,12 +150,10 @@ def construct_containerfile(
dockerfile_path = "env/docker/Dockerfile"
instruction: list[str] = []

with (
fs.open_fs("temp://") as temp_fs,
open(bento.path_of("bento.yaml"), "rb") as bento_yaml,
):
with fs.open_fs("temp://") as temp_fs:
tempdir = temp_fs.getsyspath("/")
options = BentoInfo.from_yaml_file(bento_yaml)
with open(bento.path_of("bento.yaml"), "rb") as bento_yaml:
options = BentoInfo.from_yaml_file(bento_yaml)
# tmpdir is our new build context.
fs.mirror.mirror(bento._fs, temp_fs, copy_if_newer=True)