f3f9718f50
When globbing a file that has a FileInfo set, we would reuse the pointer to the original file's FileInfo even if the matched files' sizes are different, causing deb to error when writing the data file due to mismatching sizes. Copy the FileInfo and recalculate its size when globbing. Add a test case to check this scenario. Fixes #316. |
||
---|---|---|
.github | ||
apk | ||
cmd/nfpm | ||
deb | ||
deprecation | ||
files | ||
internal | ||
rpm | ||
scripts | ||
testdata | ||
www | ||
.gitattributes | ||
.gitignore | ||
.golangci.yml | ||
.goreleaser.yml | ||
.lintian-overrides | ||
acceptance_test.go | ||
CODE_OF_CONDUCT.md | ||
CONTRIBUTING.md | ||
Dockerfile | ||
go.mod | ||
go.sum | ||
LICENSE.md | ||
nfpm_test.go | ||
nfpm.go | ||
README.md | ||
SECURITY.md | ||
Taskfile.yml | ||
vercel.json |
nFPM
nFPM is a simple, 0-dependencies, deb, rpm and apk packager.
Why
While fpm is great, for me, it is a bummer that it depends on ruby
, tar
and other software.
I wanted something that could be used as a binary and/or as a library and that was really simple.
So I created nFPM: a simpler, 0-dependency, as-little-assumptions-as-possible alternative to fpm.
Usage
Check the documentation at https://nfpm.goreleaser.com
Special thanks 🙏
Thanks to the fpm authors for fpm, which inspires nfpm a lot.
Community
You have questions, need support and or just want to talk about GoReleaser/nFPM?
Here are ways to get in touch with the GoReleaser community:
Donate
Donations are very much appreciated! You can donate/sponsor on the main goreleaser opencollective! It's easy and will surely help the developers at least buy some ☕️ or 🍺!