nfpm
nfpm copied to clipboard
Provide files as tgz
It seems like right now there is no way to specify a full tgz for the files that should go into the package. And there is no way to specify the ownership and permissions in detail (that I see).
Would be great if one could provide a complete tgz as the data section of package.
hmm, maybe...
That sounds very sceptical :) May I ask why? How do you setup permissions of the files included in the package at the moment instead?
sorry, didn't meant to sound very skeptical haha
right now, as far as I remember, it uses whatever permissions the files already have, although I agree that's not ideal.
I use it only on goreleaser itself, and for what goreleaser supports that was never a problem, but to support "power users" I agree there must be a better way...
If you have any thoughts on how you this could or should be added best I am all ears. Maybe I can then work on a PR.
Now with #79 by @djgilcrease , nfpm can perhaps offer using rpmpack.FromTar
as an additional input method.
So is the idea here to have an optional property in the config file along the lines of files_from_tar
which would cause the files from the specified tar archive be added to the package in addition to the ones specified in files
property?
@mig4 the original idea was without the "in addition" part. Essentially all data files in the package in one tgz. Which means all permissions and ownerships are defined.
In addition would of course be an option, too.
I would say add a FilesTar string
to Overridables make sure it is mutually exclusive with the Files []string
then update deb/createDataTarGz to use the passed in FilesTar
if set && update rpm/Package to use rpmpack/FromTar if FilesTar
is set
Yeah, I just wanted to confirm the expectation was that this would be an additional option in the config file, instead of a CLI arg for example. As for in addition/instead, whatever makes most sense. I'll give it a spin and propose something and we can discuss the details there sure.
Many thanks for the pointers @djgilcrease :grin:
closing due to lack of interest from the community
@caarlos0 is there any other way to specify ownership and permissions of files inside the package by now?
yes, https://nfpm.goreleaser.com/configuration/?h=file_info#reference