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.14k stars 157 forks source link

nFPM doesn't seems support includes #662

Closed Libaud closed 1 year ago

Libaud commented 1 year ago

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

nFPM is a very good tool, but doesn't seems support includes files with YAML syntax. It will be very useful for multiples packages with the same parameters.

Describe the solution you'd like

YAML include file support syntax.

Describe alternatives you've considered

Or another way to include files in cascade for params the nfpm packaging project configuration file.

Search

Code of Conduct

Additional context

For example a project with X86 and X64 architecture, there's two package that correspond to these. And there's two nfpm configuration file. But the same parameters base.

caarlos0 commented 1 year ago

you can use environment variables in many fields, if I recall correctly, arch is one of them.

You can also pipe the file through some template engine before handling it to nfpm.

All that being said, "yes is forever", so, I rather not do this - or at least not right now.

Thanks for the suggestion either way.