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:
parent
2cf7b40f3c
commit
f18a5d1fee
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user