mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-02-13 13:48:40 +02:00
feat: nfpm: support creating empty folders
This commit is contained in:
parent
5252f74ade
commit
e165058098
6
Gopkg.lock
generated
6
Gopkg.lock
generated
@ -137,8 +137,8 @@
|
||||
"glob",
|
||||
"rpm"
|
||||
]
|
||||
revision = "8faa8e2e621115b3b560688a72d9c37bff4acb9f"
|
||||
version = "v0.8.2"
|
||||
revision = "d2eaeef92bdb3ead4ee45852b10b81f4c650f4fc"
|
||||
version = "v0.9.0"
|
||||
|
||||
[[projects]]
|
||||
name = "github.com/imdario/mergo"
|
||||
@ -258,6 +258,6 @@
|
||||
[solve-meta]
|
||||
analyzer-name = "dep"
|
||||
analyzer-version = 1
|
||||
inputs-digest = "3fac5f0b013f4e66674db9d8ac7781f82ffdb4d46e3e004cfab2728b78c37a84"
|
||||
inputs-digest = "f8fe5bd56d1929f1592ca556cb199eec1d49bbc99d1b1cd5796a9a2be7d6bb22"
|
||||
solver-name = "gps-cdcl"
|
||||
solver-version = 1
|
||||
|
@ -48,7 +48,7 @@
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/goreleaser/nfpm"
|
||||
version = "~0.8.0"
|
||||
version = "~0.9.0"
|
||||
|
||||
[[constraint]]
|
||||
name = "github.com/alecthomas/kingpin"
|
||||
|
@ -189,6 +189,7 @@ type NFPMOverridables struct {
|
||||
Recommends []string `yaml:",omitempty"`
|
||||
Suggests []string `yaml:",omitempty"`
|
||||
Conflicts []string `yaml:",omitempty"`
|
||||
EmptyFolders []string `yaml:"empty_folders,omitempty"`
|
||||
Files map[string]string `yaml:",omitempty"`
|
||||
ConfigFiles map[string]string `yaml:"config_files,omitempty"`
|
||||
Scripts NFPMScripts `yaml:"scripts,omitempty"`
|
||||
|
@ -135,12 +135,13 @@ func create(ctx *context.Context, format, arch string, binaries []artifact.Artif
|
||||
License: ctx.Config.NFPM.License,
|
||||
Bindir: ctx.Config.NFPM.Bindir,
|
||||
Overridables: nfpm.Overridables{
|
||||
Conflicts: overrided.Conflicts,
|
||||
Depends: overrided.Dependencies,
|
||||
Recommends: overrided.Recommends,
|
||||
Suggests: overrided.Suggests,
|
||||
Files: files,
|
||||
ConfigFiles: overrided.ConfigFiles,
|
||||
Conflicts: overrided.Conflicts,
|
||||
Depends: overrided.Dependencies,
|
||||
Recommends: overrided.Recommends,
|
||||
Suggests: overrided.Suggests,
|
||||
EmptyFolders: overrided.EmptyFolders,
|
||||
Files: files,
|
||||
ConfigFiles: overrided.ConfigFiles,
|
||||
Scripts: nfpm.Scripts{
|
||||
PreInstall: overrided.Scripts.PreInstall,
|
||||
PostInstall: overrided.Scripts.PostInstall,
|
||||
|
@ -84,6 +84,7 @@ func TestRunPipe(t *testing.T) {
|
||||
Recommends: []string{"svn"},
|
||||
Suggests: []string{"bzr"},
|
||||
Conflicts: []string{"git"},
|
||||
EmptyFolders: []string{"/var/log/foobar"},
|
||||
Files: map[string]string{
|
||||
"./testdata/testfile.txt": "/usr/share/testfile.txt",
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user