mirror of
https://github.com/goreleaser/nfpm
synced 2026-11-30 14:04:45 +01:00
Address the review findings on #612: - the .changes path is a sibling of the package: only a trailing .deb is replaced, otherwise .changes is appended, so the package is never truncated. The file is written only after it was fully generated. - Description uses the .changes format: an empty first line and one "name - synopsis" continuation line. - omitted section and priority are written as "-" in Files. - deb.metadata.distribution and deb.metadata.urgency are required when enable_metadata is set. Binary is always the package name, so deb.metadata.binary is removed. - changed_by and the other metadata fields are optional in the JSON schema, so existing deb configs still validate. - the package file name must be the conventional name_version_arch.deb, which is what upload tools parse. The error shows the expected name. - a SignFn signs the manifest only with the dpkg-sig method, which clear-signs. Other combinations return an error instead of writing an unsigned file. SignFn has priority over key_file, as for the package. - the Changes entry uses the same full version as the Version field. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: f9c82a16-ecfd-4244-a6d5-7c2c14f3dc00 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>