mirror of
https://github.com/goreleaser/nfpm.git
synced 2026-06-19 08:05:04 +00:00
3118ec19d5
* fix: Warn on empty `overrides.PACKAGER` stanza Previously, if an overrides stanza contained an empty packager clause, the user would get a segfault. This is now detected and a warning issued. Fixes #1079. * test: Parse a test file with empty overrides Tests that an empty overrides.packager clause is handled without failure. See: #1079 * update: Ignore empty overrides instead of warn
33 lines
669 B
YAML
33 lines
669 B
YAML
# Configuration file used to test that missing overrides don't cause a
|
|
# segmentation fault. See `overrides.deb` below.
|
|
name: "foo"
|
|
arch: "amd64"
|
|
mtime: 2023-01-02
|
|
version: "v1.2.3"
|
|
contents:
|
|
- src: ./testdata/whatever.conf
|
|
dst: /etc/foo/whatever.conf
|
|
type: config
|
|
- src: ./testdata/whatever.conf
|
|
dst: /deb/path.conf
|
|
type: config
|
|
packager: deb
|
|
- src: ./testdata/whatever.conf
|
|
dst: /rpm/path.conf
|
|
type: config
|
|
packager: rpm
|
|
- src: ./testdata/whatever.conf
|
|
dst: /apk/path.conf
|
|
type: config
|
|
packager: apk
|
|
rpm:
|
|
group: foo
|
|
overrides:
|
|
deb:
|
|
rpm:
|
|
depends:
|
|
- rpm_depend
|
|
apk:
|
|
depends:
|
|
- apk_depend
|