1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +02:00

docs: snapshot fix

closes #1388

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-03-16 11:40:17 -03:00
parent 2cf7b40f3c
commit f18a5d1fee
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -23,6 +23,14 @@ snapshot:
name_template: 1.2.3-SNAPSHOT-{{.Commit}}
```
## How it works
When you run GoReleaser with `--snapshot`, it will set the `Version` template
variable to the evaluation of `snapshot.name_template`.
This means that if you use `{{ .Version }}` on your name templates, you'll
get the snapshot version.
> Learn more about the [name template engine](/templates).
Note that the idea behind GoReleaser's snapshots if mostly for local builds