mirror of
https://github.com/goreleaser/nfpm
synced 2026-10-31 06:31:32 +01:00
* fix: Add optional dependencies to Arch packages Serialize recommends and suggests as Arch optdepend metadata so optional dependencies are retained in generated packages. See #1123 * test: assert optdepend in the archlinux acceptance stage Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018mQoXuBtWLvs8N7nSYWNKz * refactor: use slices.Concat and assert every optdepend value Address the review nits: avoid writing into the Recommends backing array, and assert the full list of optdepend values instead of substrings, since extractPkginfoFields keeps only the last value of a repeated key. Signed-off-by: amirahrari <ahrariamir@proton.me> --------- Signed-off-by: amirahrari <ahrariamir@proton.me> Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: amir <mirammir21@gmail.com> Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com> Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: cb68ab4e-96d3-4658-a1c0-c2c33e8c52a0