Skip to content

hadolint's lock names the libffi and zstd alpine now serves - #101

Open
closer-claudio wants to merge 1 commit into
mainfrom
claudio/20261124-hadolint-apk-lock
Open

closer-claudio wants to merge 1 commit into
mainfrom
claudio/20261124-hadolint-apk-lock

Conversation

@closer-claudio

@closer-claudio closer-claudio commented Nov 25, 2026 •

Copy link
Copy Markdown
Contributor

🎯 Why

Alpine 3.24 moved libffi and libffi-dev from 3.5.2-r1 to 3.8.1-r0, and then zstd-libs from 1.5.7-r2 to 1.6.0-r1. hadolint's build installs its packages into the pinned image at whatever alpine serves, and stops when the container does not hold what hadolint/apk.lock names. Both hadolint builds therefore fail on the pull requests opened since, with main unchanged under them:

🛠️ What

The three lines of hadolint/apk.lock move to what the builds printed, the same on both architectures.

hadolint/apk-linked does not move. Neither package is one of those whose code is in the binary (the libffi in it is the copy GHC carries, with its own licence file, and nothing links zstd), and the build reads the linker's map and stops if that were no longer so.

🧪 How

The hadolint builds of this pull request, on linux amd64 and arm64: the lock comparison, the link-map check against apk-linked, and the rebuild to the same bytes.

@closer-claudio closer-claudio added the internal Changes nothing for a consumer: tooling, CI, maintainers' docs; left out of the notes label Nov 25, 2026
@closer-claudio

Copy link
Copy Markdown
Contributor Author

Reviewed at 493a0ba

Alpine 3.24 moved libffi and libffi-dev from 3.5.2-r1 to 3.8.1-r0, and
then zstd-libs from 1.5.7-r2 to 1.6.0-r1. hadolint's build installs its
packages into the pinned image at whatever alpine serves and stops when
the container does not hold what hadolint/apk.lock names, so both
hadolint builds fail on the pull requests opened since, with main
unchanged under them. On libffi:
https://github.com/forkcloser/testbin/actions/runs/45336841413/job/138251514746
https://github.com/forkcloser/testbin/actions/runs/45293186413/job/138107042494
and, with libffi moved, on zstd-libs:
https://github.com/forkcloser/testbin/actions/runs/45531938018/job/138929219349

The three lines move to what the builds printed, the same on both
architectures. hadolint/apk-linked does not move: neither is one of
the packages whose code is in the binary (the libffi in it is the copy
GHC carries, and nothing links zstd), and the build reads the linker's
map and stops if that were no longer so.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Signed-off-by: closer-claudio <claudio@farcloser.world>
@closer-claudio
closer-claudio force-pushed the claudio/20261124-hadolint-apk-lock branch from 493a0ba to 38423be Compare November 25, 2026 02:25
@closer-claudio closer-claudio changed the title hadolint's lock names the libffi alpine now serves hadolint's lock names the libffi and zstd alpine now serves Nov 25, 2026
@closer-claudio

Copy link
Copy Markdown
Contributor Author

Reviewed at 38423be

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal Changes nothing for a consumer: tooling, CI, maintainers' docs; left out of the notes

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant