Skip to content

Commit

Permalink
feat: make goreleaser.deb pass lintian validations (#2883)
Browse files Browse the repository at this point in the history
* feat: make pkg pass lintian validations

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: lintian issues

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>

* fix: bash completions

Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
  • Loading branch information
caarlos0 committed Feb 5, 2022
1 parent e3997f8 commit 750d520
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
30 changes: 26 additions & 4 deletions .goreleaser.yaml
Expand Up @@ -210,19 +210,41 @@ nfpms:
- file_name_template: '{{ .ConventionalFileName }}'
id: packages
homepage: https://goreleaser.com
description: Deliver Go binaries as fast and easily as possible
maintainer: Carlos Alexandro Becker <root@carlosbecker.com>
description: |-
Deliver Go binaries as fast and easily as possible.
GoReleaser allows you to release easily build, package, publish and
announce to several places at one go.
maintainer: Carlos Alexandro Becker <carlos@becker.software>
license: MIT
vendor: GoReleaser
bindir: /usr/bin
section: utils
contents:
- src: ./completions/goreleaser.bash
dst: /etc/bash_completion.d/goreleaser
dst: /usr/share/bash-completion/completions/goreleaser
file_info:
mode: 0644
- src: ./completions/goreleaser.fish
dst: /usr/share/fish/completions/goreleaser.fish
file_info:
mode: 0644
- src: ./completions/goreleaser.zsh
dst: /usr/local/share/zsh/site-functions/_goreleaser
dst: /usr/share/zsh/vendor-completions/_goreleaser
file_info:
mode: 0644
- src: ./manpages/goreleaser.1.gz
dst: /usr/share/man/man1/goreleaser.1.gz
file_info:
mode: 0644
- src: ./LICENSE.md
dst: /usr/share/doc/goreleaser/copyright
file_info:
mode: 0644
- src: .lintian-overrides
dst: ./usr/share/lintian/overrides/goreleaser
packager: deb
file_info:
mode: 0644
formats:
- apk
- deb
Expand Down
2 changes: 2 additions & 0 deletions .lintian-overrides
@@ -0,0 +1,2 @@
goreleaser: statically-linked-binary
goreleaser: changelog-file-missing-in-native-package
2 changes: 1 addition & 1 deletion scripts/manpages.sh
Expand Up @@ -2,4 +2,4 @@
set -e
rm -rf manpages
mkdir manpages
go run . man | gzip -c >manpages/goreleaser.1.gz
go run . man | gzip -c -9 >manpages/goreleaser.1.gz

0 comments on commit 750d520

Please sign in to comment.