Following #3540, output artifacts' checksums to the artifact info. This addition makes it easier to consume the checksums, especially when running from e.g. GitHub Actions. New tests: 1. Add a check for the checksum in the extra field. 2. Add a test for every checksum algorithm (to see that it doesn't break for any algo's output). 3. Add a case of a binary and an extra file (to see that the logic doesn't break when there's a mix). p.s. While working on that, I noticed that the convention for extra fields is actually to use UpperCamelCase rather than lower. I was mistaken because I looked at the subfields of the "DockerConfig" extra field. I think it's a good idea to fix it quickly, before the next release rolls and it becomes a compatibility issue. I took the liberty to fix it here as an extra commit. Please let me know if you want it to be in a separate PR. --- Tests: ``` go test • refreshing checksums file=binary_bar_checksums.txt • refreshing checksums file=binary_bar_checksums.txt • refreshing checksums file=binary_bar_checksums.txt PASS ok github.com/goreleaser/goreleaser/internal/pipe/checksums 0.184s ``` Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
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
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].