New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Description not being used for deb nfpm #2861
Comments
That seems odd, goreleaser itself has everything set as expected: carlos@darkstar in ~ 2s
❯ dpkg-deb -I goreleaser_1.4.1_amd64.deb
new Debian package, version 2.0.
size 11385942 bytes: control archive=576 bytes.
1 bytes, 0 lines conffiles
314 bytes, 12 lines control
363 bytes, 5 lines md5sums
Package: goreleaser
Version: 1.4.1
Section:
Priority: optional
Architecture: amd64
Maintainer: Carlos Alexandro Becker <root@carlosbecker.com>
Vendor: GoReleaser
Installed-Size: 37360
Depends: git
Recommends: golang
Homepage: https://goreleaser.com
Description: Deliver Go binaries as fast and easily as possible I also cloned your repo and tested it, and it seems to work just fine: carlos@darkstar in /tmp
❯ git clone https://github.com/staticdev/cleancontacts
Cloning into 'cleancontacts'...
remote: Enumerating objects: 174, done.
remote: Counting objects: 100% (174/174), done.
remote: Compressing objects: 100% (124/124), done.
remote: Total 174 (delta 80), reused 117 (delta 44), pack-reused 0
Receiving objects: 100% (174/174), 59.11 KiB | 2.11 MiB/s, done.
Resolving deltas: 100% (80/80), done.
carlos@darkstar in /tmp 670ms
❯ cd cleancontacts/
carlos@darkstar in /tmp/cleancontacts on main
❯ goreleaser release --rm-dist --skip-validate --skip-sign --skip-sbom --skip-publish
• releasing...
• loading config file file=.goreleaser.yaml
• loading environment variables
• getting and validating git state
• building... commit=aa107290196d8185c96087d955d8430e73c8cb28 latest tag=v0.2.1
• pipe skipped error=validation is disabled
• parsing tag
• setting defaults
• checking distribution directory
• --rm-dist is set, cleaning it up
• loading go mod information
• build prerequisites
• writing effective config file
• writing config=dist/config.yaml
• generating changelog
• writing changelog=dist/CHANGELOG.md
• building binaries
• building binary=/tmp/cleancontacts/dist/cleancontacts_darwin_arm64/cleancontacts
• building binary=/tmp/cleancontacts/dist/cleancontacts_linux_amd64/cleancontacts
• building binary=/tmp/cleancontacts/dist/cleancontacts_linux_386/cleancontacts
• building binary=/tmp/cleancontacts/dist/cleancontacts_windows_amd64/cleancontacts.exe
• building binary=/tmp/cleancontacts/dist/cleancontacts_windows_arm64/cleancontacts.exe
• building binary=/tmp/cleancontacts/dist/cleancontacts_linux_arm64/cleancontacts
• building binary=/tmp/cleancontacts/dist/cleancontacts_darwin_amd64/cleancontacts
• building binary=/tmp/cleancontacts/dist/cleancontacts_windows_386/cleancontacts.exe
• archives
• creating archive=dist/cleancontacts_0.2.1_Linux_arm64.zip
• creating archive=dist/cleancontacts_0.2.1_Windows_32.zip
• creating archive=dist/cleancontacts_0.2.1_Windows_x86_64.zip
• creating archive=dist/cleancontacts_0.2.1_Windows_arm64.zip
• creating archive=dist/cleancontacts_0.2.1_Mac_x86_64.zip
• creating archive=dist/cleancontacts_0.2.1_Mac_arm64.zip
• creating archive=dist/cleancontacts_0.2.1_Linux_32.zip
• creating archive=dist/cleancontacts_0.2.1_Linux_x86_64.zip
• linux packages
• creating arch=arm64 file=dist/cleancontacts_0.2.1_linux_arm64.rpm format=rpm package=cleancontacts
• creating arch=arm64 file=dist/cleancontacts_0.2.1_linux_arm64.deb format=deb package=cleancontacts
• creating arch=386 file=dist/cleancontacts_0.2.1_linux_386.rpm format=rpm package=cleancontacts
• creating arch=amd64 file=dist/cleancontacts_0.2.1_linux_amd64.deb format=deb package=cleancontacts
• creating arch=386 file=dist/cleancontacts_0.2.1_linux_386.deb format=deb package=cleancontacts
• creating arch=amd64 file=dist/cleancontacts_0.2.1_linux_amd64.rpm format=rpm package=cleancontacts
• calculating checksums
• storing release metadata
• writing file=dist/artifacts.json
• writing file=dist/metadata.json
• release succeeded after 1.46s
carlos@darkstar in /tmp/cleancontacts on main 1s
❯ dpkg -I dist/cleancontacts_0.2.1_linux_amd64.deb
new Debian package, version 2.0.
size 1619442 bytes: control archive=391 bytes.
1 bytes, 0 lines conffiles
273 bytes, 8 lines control
64 bytes, 1 lines md5sums
Package: cleancontacts
Version: 0.2.1
Section:
Priority: optional
Architecture: amd64
Maintainer: staticdev <staticdev-support@protonmail.com>
Installed-Size: 3984
Description: Cleanup your phone contacts to prevent apps for having access to all details of your contacts.
carlos@darkstar in /tmp/cleancontacts on main
❯ goreleaser --version
goreleaser version 1.4.1
commit: a1447a363579365f489458ad7636fd088a5b66ab
built at: 2022-01-27T03:23:37Z
built by: goreleaser
goos: linux
goarch: amd64
module version: v1.4.1, checksum: h1:gW8sdjDEo2H2ZgcJmWsNZUcaJSD4MLvA/bw7+GYQ8kU=
https://goreleaser.com I have no idea why deb is complaining... maybe new fields we need to fill now? |
Olá @caarlos0 vi aqui que é br, então vou continuar em pt. Sobre os erros descobri que o primeiro erro é porque o Debian espera que o campo description tenha no mínimo 2 linhas: https://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-description Consegui resolver no goreleaser com: nfpms:
- maintainer: staticdev <staticdev-support@protonmail.com>
license: "MIT"
description: |
This is a test.
Cleanup your phone contacts to prevent apps for having access to all details of your contacts.
formats:
- deb
- rpm Tentei colocar Talvez seja uma boa colocar um warning no Sobre o segundo erro, vou dar uma olhada agora. |
@caarlos0 update: dps de resolver o problema da extended description agora aparece um warning description-starts-with-leading-spaces isso acontece pq antes de cada frase na description o goreleaser adiciona dois espaços e o padrão é 1 espaço =( Se vc der dpkg -I nesse exemplo vai aparecer:
Exemplo do nmap do repositório do Debian
Se preferir posso criar um issue separado para o problema da licença. |
pretty sure this needs to be: description: |-
This is a test.
Cleanup your phone contacts to prevent apps for having access to all details of your contacts.
formats: |
refs #2861 Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
@caarlos0 it didn't make any difference for me having |
|
same version here... no idea why it doesn't complain here... |
@caarlos0 I get the error using |
fixed on nfpm v2.12, and also merged in here. next version of goreleaser will have this fixed as well. to fix other lintian issues, you can refer to #2883 thanks again for the report! |
Thanks a lot @caarlos0, this tool is very good. I will spread it around! |
What happened?
I created a
.goreleaser.yaml
configuration with:Then I use
lintian
to validade Debian compatibility of the deb packages I get:The parameters description and license could be used to have a compatible package.
How can we reproduce this?
Repo: https://github.com/staticdev/cleancontacts/releases
goreleaser version
GoReleaser Check
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: