Skip to content

CI: exclude thirdparty/licenses from docker image source checksums#6447

Open
Grantim wants to merge 1 commit into
masterfrom
ci/exclude-licenses-from-image-checksum
Open

CI: exclude thirdparty/licenses from docker image source checksums#6447
Grantim wants to merge 1 commit into
masterfrom
ci/exclude-licenses-from-image-checksum

Conversation

@Grantim

@Grantim Grantim commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

Follow-up to #6436, reopening the change from the closed #6437 against the merged registry-check mechanism.

thirdparty/licenses/** — the curated THIRD-PARTY-NOTICES.txt and its manifest.json — is currently hashed into every image's source-checksum-* tag, yet none of it reaches the images: the license texts are copied into the distributed packages, not into the build environment. So a licenses-only commit moves the checksum tag, and under #6436 that tag then resolves to no image in the registry, forcing a full rebuild of every distro image for a change that alters nothing in them.

This excludes the directory from the hashed set, matching the existing exclusions for Noto_Sans, mrbind, and vcpkg.

Effect

  • The exclusion changes every checksum once, so this PR's own CI (and the first build after merge) rebuilds all images one time; stable thereafter.
  • Editing the notices no longer churns the image cache.

Verified locally

ubuntu24: source-checksum-a600c4fdf24cd22esource-checksum-22cb33e3f998330a, and the only paths leaving the hashed set are thirdparty/licenses/THIRD-PARTY-NOTICES.txt and thirdparty/licenses/manifest.json — no collateral.

License texts are shipped inside packages, not baked into the images, so a
licenses-only commit should not move the source-checksum-* tag and trigger a
needless full rebuild of every image.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant