Closed samhclark closed 2 months ago
Closing this because it doesn't look like your issue. Sorry about that. Ubuntu patched out the support for --checksum
The GitHub Actions Ubuntu 24.04 runner really does have buildah v1.33.7
Installing a fresh Ubuntu Server 24.04 VM also gives buildah v1.33.7
From that VM, buildah build -f Containerfile -t 'myimage:latest'
also fails with the same error.
The changelog for the current buildah package in Ubuntu 24.04 Noble has this patch
golang-github-containers-buildah (1.33.1+ds1-1) experimental; urgency=medium
* New upstream release
* Revert heredoc and --checksum support in Dockerfiles to workaround ancient
docker.io package in Debian, cf #1051202
-- Reinhard Tartler <siretart@tauware.de> Fri, 24 Nov 2023 12:43:20 +0000
That references this now-closed Debian issue https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1051202
So, yeah, Ubuntu applies a patch that removes the --checksum functionality from their version of buildah, hence why that feature is missing even though the version looks right. Hope I didn't send anyone on a wild goose chase.
Version
redhat-actions/buildah-build@v2
On Ubuntu 24.04 runner Using buildah 1.33.7
Describe the bug
A containerfile that uses the
--checksum
flag on theADD
command should work; it's been supported since buildah 1.33.0Instead, I get the error:
ADD only supports the --chmod=<permissions> and the --chown=<uid:gid> flag
(more complete logs)
Steps to reproduce, workflow links, screenshots
Here's a link to a complete minimal example: https://github.com/samhclark/buildah-checksum
To inline some of that here...
A containerfile
Containerfile
A build worklow
.github/workflows/build.yaml
Running that workflow shows that it is using buildah 1.33.7
And yet, I get the error above.
ADD only supports the --chmod=<permissions> and the --chown=<uid:gid> flag
A link to the exact worflow (I think these are public) https://github.com/samhclark/buildah-checksum/actions/runs/10463728712/job/28976181216
Sorry if I'm missing something obvious, I'm new to GitHub Actions, but I can't figure out why this is failing.