github.com/goreleaser/goreleaser@v1.25.1/www/docs/customization/checksum.md (about) 1 # Checksums 2 3 GoReleaser generates a `project_1.0.0_checksums.txt` file and uploads it with the 4 release, so your users can validate if the downloaded files are correct. 5 6 The `checksum` section allows customizations of the filename: 7 8 ```yaml 9 # .goreleaser.yaml 10 checksum: 11 # You can change the name of the checksums file. 12 # 13 # Default: '{{ .ProjectName }}_{{ .Version }}_checksums.txt' 14 # or, when split is set: '{{ .ArtifactName }}.{{ .Algorithm }}' 15 # Templates: allowed 16 name_template: "{{ .ProjectName }}_checksums.txt" 17 18 # Algorithm to be used. 19 # Accepted options are sha256, sha512, sha1, crc32, md5, sha224 and sha384. 20 # 21 # Default: sha256. 22 algorithm: sha256 23 24 # If true, will create one checksum file for each artifact. 25 # Since: v1.25 26 split: true 27 28 # IDs of artifacts to include in the checksums file. 29 # 30 # If left empty, all published binaries, archives, linux packages and source archives 31 # are included in the checksums file. 32 ids: 33 - foo 34 - bar 35 36 # Disable the generation/upload of the checksum file. 37 disable: true 38 39 # You can add extra pre-existing files to the checksums file. 40 # The filename on the checksum will be the last part of the path (base). 41 # If another file with the same name exists, the last one found will be used. 42 # 43 # Templates: allowed 44 extra_files: 45 - glob: ./path/to/file.txt 46 - glob: ./glob/**/to/**/file/**/* 47 - glob: ./glob/foo/to/bar/file/foobar/override_from_previous 48 - glob: ./single_file.txt 49 name_template: file.txt # note that this only works if glob matches 1 file only 50 51 # Additional templated extra files to add to the checksum. 52 # Those files will have their contents pass through the template engine, 53 # and its results will be added to the checksum. 54 # 55 # This feature is only available in GoReleaser Pro. 56 # Since: v1.17 (pro) 57 # Templates: allowed 58 templated_extra_files: 59 - src: LICENSE.tpl 60 dst: LICENSE.txt 61 ``` 62 63 !!! tip 64 65 Learn more about the [name template engine](/customization/templates/).