goreleaser / nfpm

nFPM is Not FPM - a simple deb, rpm, apk, ipk, and arch linux packager written in Go
https://nfpm.goreleaser.com/
MIT License
2.13k stars 157 forks source link

Ability to specify a type as "config|tree" for `/etc` so that all files are referenced in configfiles #769

Open acabarbaye opened 7 months ago

acabarbaye commented 7 months ago

Is your feature request related to a problem? Please describe.

currently, config type seems to only apply to individual files and according to schema cannot be used in addition to the tree type.

Describe the solution you'd like

the solution would be to introduce a new type config|tree which would combine the behaviour of each type: reproduce the tree structure and mark each files found as configuration file

Describe alternatives you've considered

the only alternative is to do this manually and reference every file as "config".

Search

Code of Conduct

Additional context

No response

ursetto commented 2 months ago

Just want to note that config|noreplace is practically required for RPM packages -- fpm defaults to %config(noreplace) for all RPM config files -- and so ideally should be supported with this new config|tree option. But since these are types (not flags) under the current implementation, that would result in a combinatorial explosion of types like config|tree|noreplace.