Skip to content

Commit f0bf20e

Browse files
Merge #1040
1040: Document --cache-from limitations with podman. r=Emilgardis a=Alexhuszagh Co-authored-by: Alex Huszagh <ahuszagh@gmail.com>
2 parents ab01c6e + 61a709d commit f0bf20e

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

xtask/src/build_docker_image.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,13 @@ pub fn build_docker_image(
232232
),
233233
]);
234234
} else {
235+
// we can't use `image_name` since podman doesn't support tags
236+
// with `--cache-from`. podman only supports an image format
237+
// of registry/repo although it does when pulling images. this
238+
// affects building from cache with target+subs images since we
239+
// can't use caches from registry. this is only an issue if
240+
// building with podman without a local cache, which never
241+
// happens in practice.
235242
docker_build.args(["--cache-from", &format!("{repository}/{}", target.name)]);
236243
}
237244

0 commit comments

Comments
 (0)