Skip to content

Commit 1b510ba

Browse files
committed
fix: incorrect call to find_dependent_images
1 parent 9f7552a commit 1b510ba

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

swebench/harness/docker_build.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def get_env_configs_to_build(
239239

240240
if env_image.attrs["Created"] < base_image.attrs["Created"]:
241241
# Remove the environment image if it was built after the base_image
242-
for dep in find_dependent_images(env_image):
242+
for dep in find_dependent_images(client, test_spec.env_image_key):
243243
# Remove instance images that depend on this environment image
244244
remove_image(client, dep.image_id, "quiet")
245245
remove_image(client, test_spec.env_image_key, "quiet")
@@ -339,7 +339,7 @@ def build_instance_images(
339339
):
340340
"""
341341
Builds the instance images required for the dataset if they do not already exist.
342-
342+
343343
Args:
344344
dataset (list): List of test specs or dataset to build images for
345345
client (docker.DockerClient): Docker client to use for building the images

0 commit comments

Comments
 (0)