Repository navigation
fix: a release names its files the way GitHub will leave them - #13
Merged
Merged
Conversation
The first beta went out with a .deb called gitrust_0.1.0~beta.1 and GitHub published it as gitrust_0.1.0.beta.1: it does not keep a tilde in the name of a release file, and does not say so. SHA256SUMS had been written before that and went on naming the file by the name it no longer had, so checking the download against it failed on the .deb -- which was the right file all along. The .deb now leaves the Linux job named after the version as Cargo writes it, hyphen and all. The version inside the package keeps its tilde, and that is the one dpkg reads. And the publish job stops, before anything is published, on any file whose name GitHub might change, so the next character it objects to is found by a red run and not by somebody checking a download. Signed-off-by: Francesc <francesc.bagur@coffeesoftware.io> Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
A release's
.debleaves the workflow under a name GitHub will not change, and the publish job refuses to go on if any file has a name it might.v0.1.0-beta.1was published withSHA256SUMSnaminggitrust_0.1.0~beta.1_amd64.deband the file itself calledgitrust_0.1.0.beta.1_amd64.deb: GitHub does not keep a tilde in the name of a release file and replaces it without saying so.sha256sum -c SHA256SUMSfailed on the.deb, which was the right file all along. TheSHA256SUMSon that release has been replaced by hand with one that names the file as it is served; the four hashes are the same four.What was decided
gitrust_0.1.0-beta.1_amd64.deb; the version inside it is still0.1.0~beta.1. The tilde is there for dpkg, and dpkg reads the version from the package, not from what the file is called. So the name follows the tag and the other three files, anddeb.shis left alone: run by hand it still names the file the way Debian does.Checked
cargo testpasses here, not just in CI -- nothing that compiles was touched; 382 at this codelinuxartifact holdsgitrust_0.1.0-beta.1_amd64.debwithVersion: 0.1.0~beta.1inside.git commit -s) and read as sentences🤖 Generated with Claude Code