Skip to content

Fix deb build to use correct Docker build arg name#239

Merged
baelter merged 1 commit intomainfrom
copilot/fix-debian-package-dependencies
Jan 16, 2026
Merged

Fix deb build to use correct Docker build arg name#239
baelter merged 1 commit intomainfrom
copilot/fix-debian-package-dependencies

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 16, 2026

Summary

The Debian packages for all distributions had identical SHA256 hashes and wrong dependencies (e.g., Bullseye requiring libc6 >= 2.38).

Root Cause

The Dockerfile.deb expects a build argument named build_image:

ARG build_image=84codes/crystal:latest-ubuntu-24.04
FROM $build_image AS builder

But the workflow was passing image instead:

build-args: |
  image=84codes/crystal:1.15.1-${{ matrix.os }}  # Wrong arg name!

Since the argument name didn't match, Docker used the default value (ubuntu-24.04) for all matrix jobs, causing every deb package to be built against Ubuntu 24.04 regardless of the target distribution.

Fix

  1. Change image to build_image to match the Dockerfile's expected argument name
  2. Update Crystal image tag from 1.15.1 to 1.18.2 (the 1.15.1 images no longer exist on Docker Hub; using 1.18.2 instead of latest to avoid deprecation warnings in newer Crystal versions)

Fixes #238

Copilot AI changed the title [WIP] Fix broken Debian packages for some distributions Fix parallel matrix builds overwriting each other's output directories Jan 16, 2026
Copilot AI requested a review from baelter January 16, 2026 14:35
@baelter baelter force-pushed the copilot/fix-debian-package-dependencies branch from aa552e6 to 6df88a2 Compare January 16, 2026 14:47
@baelter baelter changed the title Fix parallel matrix builds overwriting each other's output directories Fix deb build to use correct Docker build arg name Jan 16, 2026
@baelter baelter force-pushed the copilot/fix-debian-package-dependencies branch from 6df88a2 to 03a45d1 Compare January 16, 2026 14:52
The Dockerfile.deb expects `build_image` but the workflow was passing
`image`, causing all builds to use the default ubuntu-24.04 base image
regardless of the target OS matrix. This resulted in all deb packages
having identical sha256 hashes and wrong dependencies (libc6 >= 2.38).

Also update Crystal image tag from 1.15.1 to 1.18.2, as the 1.15.1
images no longer exist on Docker Hub. Using 1.18.2 instead of latest
to avoid deprecation warnings in newer Crystal versions.

Fixes #238
@baelter baelter force-pushed the copilot/fix-debian-package-dependencies branch from 03a45d1 to 7c83748 Compare January 16, 2026 14:55
@baelter baelter marked this pull request as ready for review January 16, 2026 14:58
@baelter baelter requested a review from a team as a code owner January 16, 2026 14:58
Copy link
Copy Markdown
Member

@viktorerlingsson viktorerlingsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

@baelter baelter merged commit 103d5cd into main Jan 16, 2026
8 checks passed
@baelter baelter deleted the copilot/fix-debian-package-dependencies branch January 16, 2026 19:54
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.

Debian packages broken for some distributions (3.1.1)

3 participants