Skip to content

Commit 2930d20

Browse files
carlhoerbergclaude
andcommitted
Fix version format in debian/Dockerfile for non-numeric versions
Transform versions that don't start with a digit (like feature-io-uring) to be Debian-compatible by prefixing with 0~ and replacing hyphens with dots. Co-Authored-By: Claude Opus 4.5 <[email protected]>
1 parent 1f5fb61 commit 2930d20

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debian/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@ COPY debian/ debian/
5454
ARG pkg_revision=1
5555

5656
# Update version and llvm version in control file
57-
RUN sed -i "s/\${crystal_version}/${crystal_version}/g; s/\${pkg_revision}/${pkg_revision}/g; s/\$(date -R)/$(date -R)/g" debian/changelog && \
57+
RUN deb_version=$(echo "${crystal_version}" | sed 's/^[^0-9]/0~/; s/-/./g') && \
58+
sed -i "s/\${crystal_version}/${deb_version}/g; s/\${pkg_revision}/${pkg_revision}/g; s/\$(date -R)/$(date -R)/g" debian/changelog && \
5859
sed -i "s/\$(date +%Y)/$(date +%Y)/g" debian/copyright
5960

6061
# Build the package

0 commit comments

Comments
 (0)