1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-14 16:46:23 +02:00

fix: add the non-overides package relation fields to allow env expansion (#593)

This commit is contained in:
Dj Gilcrease 2022-12-29 16:07:34 -08:00 committed by GitHub
parent c46f14323a
commit 0c2ef6b723
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -186,8 +186,15 @@ func (c *Config) expandEnvVars() {
c.Overrides[or].Provides = c.expandEnvVarsStringSlice(c.Overrides[or].Provides)
c.Overrides[or].Suggests = c.expandEnvVarsStringSlice(c.Overrides[or].Suggests)
}
c.Info.Conflicts = c.expandEnvVarsStringSlice(c.Info.Conflicts)
c.Info.Depends = c.expandEnvVarsStringSlice(c.Info.Depends)
c.Info.Replaces = c.expandEnvVarsStringSlice(c.Info.Replaces)
c.Info.Recommends = c.expandEnvVarsStringSlice(c.Info.Recommends)
c.Info.Provides = c.expandEnvVarsStringSlice(c.Info.Provides)
c.Info.Suggests = c.expandEnvVarsStringSlice(c.Info.Suggests)
// Maintainer and vendor fields
c.Info.Name = os.Expand(c.Info.Name, c.envMappingFunc)
c.Info.Maintainer = os.Expand(c.Info.Maintainer, c.envMappingFunc)
c.Info.Vendor = os.Expand(c.Info.Vendor, c.envMappingFunc)