2017-09-10 22:07:28 +02:00
|
|
|
---
|
2017-10-01 18:57:52 +02:00
|
|
|
title: Checksum
|
2017-09-10 22:07:28 +02: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 22:07:28 +02:00
|
|
|
|
2017-10-01 18:57:52 +02:00
|
|
|
The `checksum` section allows customizations of the filename:
|
2017-09-10 22:07:28 +02:00
|
|
|
|
|
|
|
```yml
|
|
|
|
# .goreleaser.yml
|
|
|
|
checksum:
|
|
|
|
# You can change the name of the checksums file.
|
2017-10-01 18:57:52 +02:00
|
|
|
# This is parsed with the Go template engine and the following variables
|
2017-09-10 22:07:28 +02:00
|
|
|
# are available:
|
|
|
|
# - ProjectName
|
|
|
|
# - Tag
|
2017-10-01 18:57:52 +02:00
|
|
|
# - Version (Git tag without `v` prefix)
|
2017-12-17 23:54:07 +02:00
|
|
|
# - Env (environment variables)
|
2017-10-01 18:57:52 +02:00
|
|
|
# Default is `{{ .ProjectName }}_{{ .Version }}_checksums.txt`.
|
2017-09-10 22:07:28 +02:00
|
|
|
name_template: "{{ .ProjectName }}_checksums.txt"
|
|
|
|
```
|