1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2024-12-27 01:33:39 +02:00

docs: fix nfpm symlink example

closes #1982

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
This commit is contained in:
Carlos Alexandro Becker 2020-12-30 15:49:44 -03:00
parent 8e45550e50
commit 71c6d96da6
2 changed files with 6 additions and 5 deletions

View File

@ -24,7 +24,7 @@ builds:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=goreleaser
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
changelog:dep
sort: asc
filters:
exclude:

View File

@ -131,12 +131,13 @@ nfpms:
dst: /etc/foo.conf
type: config
# Simple symlink
- src: /sbin/foo # link name
dst: /usr/local/bin/foo # real location
# Simple symlink.
# Corresponds to `ln -s /sbin/foo /usr/local/bin/foo`
- src: /sbin/foo
dst: /usr/local/bin/foo
type: "symlink"
# Corresponds to %config(noreplace) if the packager is rpm, otherwise it is just a config file
# Corresponds to `%config(noreplace)` if the packager is rpm, otherwise it is just a config file
- src: path/to/local/bar.conf
dst: /etc/bar.conf
type: "config|noreplace"