1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00
goreleaser/www/content/checksum.md
Carlos Alexandro Becker 7e79db1cc2
feat: support different checksum algorithms (#951)
* feat: support different checksum algorithms

* feat: added more algorithms

Co-Authored-By: caarlos0 <caarlos0@users.noreply.github.com>

* fix: build
2019-02-04 17:27:51 -02:00

27 lines
713 B
Markdown

---
title: Checksum
series: customization
hideFromIndex: true
weight: 50
---
GoReleaser generates a `project_1.0.0_checksums.txt` file and uploads it with the
release, so your users can validate if the downloaded files are correct.
The `checksum` section allows customizations of the filename:
```yml
# .goreleaser.yml
checksum:
# You can change the name of the checksums file.
# Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
name_template: "{{ .ProjectName }}_checksums.txt"
# Algorithm to be used.
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
# Default is sha256.
algorithm: sha256
```
> Learn more about the [name template engine](/templates).