<!-- Hi, thanks for contributing! Please make sure you read our CONTRIBUTING guide. Also, add tests and the respective documentation changes as well. --> <!-- If applied, this commit will... --> This PR allows `chocolateys.copyright` to be templated, and provides `ctx.ReleaseNotes` as `.Changelog`. <!-- Why is this change being made? --> Allowing templates for the copyright will enable, for example: ```yaml chocolateys: - ... copyright: Copyright (c) 1970-{{ .Now.Format "2006" }} Foo Bar ... ``` Without this change: ```xml <?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> <metadata> ... <copyright>Copyright (c) 1970-{{ .Now.Format "2006" }} Foo Bar</copyright> ... </metadata> ... </package> ``` With this change: ```xml <?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> <metadata> ... <copyright>Copyright (c) 1970-2024 Foo Bar</copyright> ... </metadata> ... </package> ``` --- Providing the release notes means they can be placed directly in the package page instead of linking to them, for example: ```yaml chocolateys: - ... release_notes: '{{ .Changelog }}' ... ``` Without this change: ```console ❯ goreleaser release --skip=sign,announce,publish --clean • starting release... ... • chocolatey packages ⨯ release failed after 4s error=template: failed to apply "{{ .Changelog }}": template: failed to apply "{{ .Changelog }}": map has no entry for key "Changelog" ``` With this change: ```xml <?xml version="1.0" encoding="utf-8"?> <package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd"> <metadata> ... <releaseNotes>## Changelog
### Other
* cfa5cbfa5 test
</releaseNotes> ... </metadata> ... </package> ``` <!-- # Provide links to any relevant tickets, URLs or other resources --> --- These are already supported for WinGet. There is probably a better way of doing this, and I've probably also missed something, so feedback is welcome!
GoReleaser
Deliver Go binaries as fast and easily as possible.
GoReleaser builds Go binaries for several platforms, creates a GitHub release and then pushes a Homebrew formula to a tap repository. All that wrapped in your favorite CI.
Get GoReleaser
Documentation
Documentation is hosted live at https://goreleaser.com
Community
You have questions, need support and or just want to talk about GoReleaser?
Here are ways to get in touch with the GoReleaser community:
You can find the links above and all others here.
Code of Conduct
This project adheres to the Contributor Covenant code of conduct. By participating, you are expected to uphold this code. We appreciate your contribution. Please refer to our contributing guidelines for further information.
Badges
GitHub Sponsors
High-tier sponsors of @caarlos0 on GitHub:
OpenCollective
Sponsors
Does your company use goreleaser? Help keep the project bug-free and feature rich by sponsoring the project.
Backers
Love our work and community? Become a backer.
Contributors
This project exists thanks to all the people who contribute. [Contribute].