1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-18 19:04:07 +01:00
nfpm/files
Marks Polakovs f3f9718f50
fix: ensure globbed FileInfo always has correct size (#482)
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.
2022-03-24 22:40:07 -03:00
..
testdata fix: ensure globbed FileInfo always has correct size (#482) 2022-03-24 22:40:07 -03:00
files_test.go fix: ensure globbed FileInfo always has correct size (#482) 2022-03-24 22:40:07 -03:00
files.go fix: ensure globbed FileInfo always has correct size (#482) 2022-03-24 22:40:07 -03:00