1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-04 02:36:04 +02:00
nfpm/files/testdata/globtest/different-sizes/b/b.txt
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

2 lines
7 B
Plaintext