Fix path in Debian md5sums file#1052
Merged
caarlos0 merged 1 commit intogoreleaser:mainfrom Mar 14, 2026
Merged
Conversation
When packaging a Debian file, I noticed: ```bash $ cat /var/lib/dpkg/info/<my-pkg>.md5sums d53cafdbafeaa62df89f21a80ccb7c1e ./etc/<my-pkg>/<some-file>.yml ``` From the [Debian md5sums manpages](https://manpages.debian.org/testing/dpkg-dev/deb-md5sums.5.en.html): > This file contains a list of MD5 digests (as 32 case-insensitive > hexadecimal characters) followed by two spaces (U+0020 SPACE) and > the absolute pathname of a plain file, one per line. > > Trailing slashes (U+002F /) in the pathname will be trimmed. > Neither trailing whitespace nor empty or whitespace-only > lines are accepted. So, a proper file should contain lines like (note no `./`): ``` d53cafdbafeaa62df89f21a80ccb7c1e etc/<my-pkg>/<some-file>.yml ``` I do not know Go but I was able to come up with this fix which works at least for my use case.
5e5e6a4 to
ba95f3e
Compare
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1052 +/- ##
=======================================
Coverage 73.05% 73.05%
=======================================
Files 22 22
Lines 2576 2576
=======================================
Hits 1882 1882
Misses 480 480
Partials 214 214 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Member
|
thanks! |
caarlos0
added a commit
that referenced
this pull request
Mar 15, 2026
refs #1052 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.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.
When packaging a Debian file, I noticed:
From the Debian md5sums manpages:
So, a proper file should contain lines like (note no
./):I do not know Go but I was able to come up with this fix which works at least for my use case.