1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-09-29 04:33:45 +02:00
nfpm/rpm
Danny Zhu a8eb8d7146
refactor: add a method on Info to list files to copy to the package (#136)
* refactor: add a method on Info to list files to copy to the package

Since iterating over the files to copy to the package is something that
all package formats need, adding a central place for that logic reduces
duplication.

Also sort the list of files as a step toward making builds more
reproducible.

* Update nfpm.go

* Rename `CopiedFile` to `FileToCopy`

* Add test for `FilesToCopy`

Co-authored-by: Danny Zhu <dzhu@dzhu.us>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-05-14 12:46:46 +00:00
..
rpm_test.go fix: lint 2020-02-18 10:50:11 -03:00
rpm.go refactor: add a method on Info to list files to copy to the package (#136) 2020-05-14 12:46:46 +00:00