2017-09-10 17:07:28 -03:00
|
|
|
---
|
2017-10-01 18:57:52 +02:00
|
|
|
title: Checksum
|
2017-09-10 17:07:28 -03:00
|
|
|
---
|
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
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.
|
2017-09-10 17:07:28 -03:00
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
The `checksum` section allows customizations of the filename:
|
2017-09-10 17:07:28 -03:00
|
|
|
|
2020-05-10 18:59:21 -03:00
|
|
|
```yaml
|
2017-09-10 17:07:28 -03:00
|
|
|
# .goreleaser.yml
|
|
|
|
checksum:
|
|
|
|
# You can change the name of the checksums file.
|
2017-10-01 18:57:52 +02:00
|
|
|
# Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
|
2017-09-10 17:07:28 -03:00
|
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
2019-02-04 17:27:51 -02:00
|
|
|
|
|
|
|
# Algorithm to be used.
|
|
|
|
# Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384.
|
|
|
|
# Default is sha256.
|
|
|
|
algorithm: sha256
|
2020-08-16 11:58:59 -03:00
|
|
|
|
2020-12-09 12:38:56 +01:00
|
|
|
# IDs of artifacts to include in the checksums file.
|
|
|
|
# If left empty, all published binaries, archives, linux packages and source archives
|
|
|
|
# are included in the checksums file.
|
|
|
|
# Default is an empty list.
|
|
|
|
ids:
|
|
|
|
- foo
|
|
|
|
- bar
|
|
|
|
|
2020-08-16 11:58:59 -03:00
|
|
|
# Disable the generation/upload of the checksum file.
|
|
|
|
# Default is false.
|
|
|
|
disable: true
|
2017-09-10 17:07:28 -03:00
|
|
|
```
|
2018-07-08 23:57:46 -07:00
|
|
|
|
2020-05-10 18:59:21 -03:00
|
|
|
!!! tip
|
2020-11-19 12:31:26 -08:00
|
|
|
Learn more about the [name template engine](/customization/templates/).
|