Files
nfpm/testdata/overrides-missing.yaml
T
Drew Leske 3118ec19d5 fix: tolerate empty overrides packager clause (#1080)
* 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
2026-05-01 13:28:22 -03:00

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