buildah-build icon indicating copy to clipboard operation
buildah-build copied to clipboard

[BUG] invalid mount type "cache"

Open mjudeikis opened this issue 2 years ago • 4 comments

Version

Describe the bug

Current version of the buildah in the release is 1.23.1 . I suspect ubuntu repos/package was out of date during release as it has to be there, but it was not :shrug:

Feature for --mount=type=cache was merged and released in v1.28.2

Bellow fails:

RUN --mount=type=cache,target=/go/pkg/mod \
    go mod download

Steps to reproduce, workflow links, screenshots

Would be good to cut maintenance release to bump buildah version.

mjudeikis avatar Dec 22 '22 14:12 mjudeikis

This is issue with base ubuntu image :/ https://github.com/actions/runner-images/blob/main/images/linux/Ubuntu2204-Readme.md and old package in ubuntu repos: https://packages.ubuntu.com/jammy/devel/ :/

mjudeikis avatar Dec 22 '22 15:12 mjudeikis

It'd be generally nice to give the option within this repository to install the latest buildah (maybe pinned version?) from sources

vincepri avatar Dec 22 '22 16:12 vincepri

This was added to buildah/podman 2+ years ago, it's pretty unfortunate the version of buildah is so our of date

https://github.com/containers/podman/issues/12062#issuecomment-950584529 https://github.com/containers/buildah/pull/3574

pseudo-su avatar Jan 13 '24 06:01 pseudo-su

Using Ubuntu 24.04 would resolve the issue out of the box. It currently supports buildah v1.33.7.

HoKim98 avatar Jun 13 '24 19:06 HoKim98