mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
Currently, the field `pkgdesc` is wrapped by simple quotes, but if the description also contains simple quotes it breaks the package. So it's not possible to publish a package that contains "Let's Encrypt" inside the description. This PR wraps the description with the right quotes depending on the description content. If there is a mix of quotes, it replaces, arbitrarily, double quotes with single quotes. Example with double quotes inside the description: https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-release/-/blob/main/PKGBUILD?ref_type=heads Example with simple quotes inside the description: https://gitlab.archlinux.org/archlinux/packaging/packages/cargo-modules/-/blob/main/PKGBUILD?ref_type=heads