nfpm
nfpm copied to clipboard
Generate .changes files for debian packages
Is your feature request related to a problem? Please describe.
I need to upload debian packages to reprepo for distribution to internal package mirrors. Reprepo needs a .changes file. I'm able to generate a debian compatible changelog using chglog, but I'm unable to create the .changes file.
I found this issue, which refers to an earlier one, but both only mention generating the changelog itself. I'm unable to find any documentation that speaks to generating the .changes control file.
Describe the solution you'd like
I'm happy to provide the PR that generates the .changes file as documented here.
Since this would be my first contribution to this project, I would like to engage the maintainers and community for advice first.
- Do you feel this belongs in nfpm, or another goreleaser repo?
- Does this change fit within the current roadmap of this project?
- Is this feature desirable enough for the maintainers to warrant their time reviewing my PR?
Describe alternatives you've considered
An alternative is for me to use dpkg-genchanges to generate the file, but nfpm is already signing my .deb file, so I would like it to sign the .changes file as well.
Search
- [X] I did search for other open and closed issues before opening this.
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
Additional context
No response
hmmm... probably nfpm/chglog
it might be possible to do it by using chglog and providing it as an extra file to the nfpm config though... maybe worth trying that first...
if it works, we can document it it :)
Hello @caarlos0 ! I tried to implement such functionality for generating .changes files for deb packages, according to docs: https://www.debian.org/doc/debian-policy/ch-controlfields.html#debian-changes-files-changes https://man7.org/linux/man-pages/man5/deb-changes.5.html
Can you look this PR, please?