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

`file_info.mode` is not inherited when using `type: tree` #777

Closed kduret closed 7 months ago

kduret commented 7 months ago

What happened?

When I package a RPM and DEB, and use type: tree, subdirectories and files do not apply file_info.mode property

file_info.owner and file_info.group are working fine (applied to subdirectories and files)

How can we reproduce this?

contents:

nfpm version

_____ ____  __  __
 _ __ |  ___|  _ \|  \/  |
| '_ \| |_  | |_) | |\/| |
| | | |  _| |  __/| |  | |
|_| |_|_|   |_|   |_|  |_|
nfpm: a simple and 0-dependencies deb, rpm, apk and arch linux packager written in Go
https://nfpm.goreleaser.com

GitVersion:    2.35.2
GitCommit:     19f03e44c39065d55675c04c794c1668801e1f06
GitTreeState:  false
BuildDate:     2024-01-05T01:57:36Z
BuiltBy:       goreleaser
GoVersion:     go1.21.5
Compiler:      gc
ModuleSum:     h1:/8dAMJ/eG9mFCgN5Q2L3gMheChXmxF9Ue5Nvd5NpnpA=
Platform:      linux/amd64


### Search

- [X] I did search for other open and closed issues before opening this.

### Code of Conduct

- [X] I agree to follow this project's Code of Conduct

### Additional context

_No response_
caarlos0 commented 7 months ago

can you check #779

kduret commented 7 months ago

can you check #779

It works like a charm ! thanks @caarlos0