Skip to content

fix(release): name a prerelease package the way GitHub serves it - #26

Merged
ShortArrow merged 1 commit into
mainfrom
fix/deb-asset-name
Oct 20, 2026
Merged

ShortArrow merged 1 commit into
mainfrom
fix/deb-asset-name

Conversation

@ShortArrow

@ShortArrow ShortArrow commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

GitHub turns a ~ in a release asset's name into ., so the v0.3.0-rc.1 release served gitreant_0.3.0.rc.1-1_amd64.deb while its SHA256SUMS listed gitreant_0.3.0~rc.1-1_amd64.deb, and sha256sum -c could not find either package. build-deb.sh now writes the file under the name the release will serve. The package's Version keeps the ~, which is what sorts an rc before its release. A stable version has no ~, so its file names do not change.

The shell scripts are checked out with LF endings, so a Windows checkout runs them in WSL; with CRLF, bash stops at set -o pipefail.

ADR 0034 also records that the install test runs in a job that can only read the repository, which stays true if the test moves into an action kept in ShortArrow/pkg.

GitHub turns the "~" of 0.3.0~rc.1 into "." in an asset's name, so
SHA256SUMS listed two files the rc.1 release did not have. Shell
scripts keep LF endings so they run from a Windows checkout in WSL.
@ShortArrow
ShortArrow marked this pull request as ready for review October 20, 2026 04:56
@ShortArrow
ShortArrow merged commit ba9bf50 into main Oct 20, 2026
13 checks passed
@ShortArrow
ShortArrow deleted the fix/deb-asset-name branch October 20, 2026 04:56
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