1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-11-19 07:34:48 +01:00
Commit Graph

49 Commits

Author SHA1 Message Date
Erik G
285a6bcaea
feat: Package Signing (#224)
* feat: Add initial openpgp signing capability.

* refactor: Rename signatures to sigs and expose verify method.

* feat: Add debsigs support.

* test: Add debsigs acceptance test.

* feat: Add RSA signing capability.

* feat: Add RPM signature support.

* test: Add RPM signature acceptance test.

* test: Move acceptance test keys in dedicated folder.

* feat: Add APK signature support.

* test: Add APK signature acceptance test.

* feat: Expose deb signature type in config.

* fix: Fix typo and superfluous explicit error check

* fix: Fix password env extraction and add tests.

* fix: Redirect rpmpack to temporary goreleaser vendoring.

* fix: Catch missing maintainer email if no apk key name is set.

* refactor: Put signature info in a dedicated struct.

* doc: Add signing documentation.

* fix: Add trailing newlines to some files and remove unnecessary comment.

* fix: Change wrong references from SHA256 to SHA1 in the sign package.

* fix: Improve error wording when no passphrase was provided.

* fix: Remove another SHA256 reference.

* fix: Fix signature errors.

* test: Split up environment variable test.

* fix: Don't parse passphrase from YAML.

* deps: Update redirected rpmpack.

* fix: Export and use signature related error type.

* doc: Document ErrSigningFailure.

* test: Fix apk signature error test.

* test: Add rpm signature error test.
2020-09-17 09:18:44 -03:00
dependabot-preview[bot]
7efe0c452b
chore(deps): bump github.com/golangci/golangci-lint (#221)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.30.0 to 1.31.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.30.0...v1.31.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-09-08 10:15:32 -03:00
dependabot-preview[bot]
be82ba473b
chore(deps): bump github.com/imdario/mergo from 0.3.10 to 0.3.11 (#204)
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.10 to 0.3.11.
- [Release notes](https://github.com/imdario/mergo/releases)
- [Commits](https://github.com/imdario/mergo/compare/v0.3.10...v0.3.11)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-08-12 09:12:47 -03:00
Erik G
6d8f3f4a44
feat: Support RPM %config(noreplace) files. (#186) 2020-08-04 14:44:13 -03:00
Carlos Alexandro Becker
a80e10dea3
refactor: internal/files (#191)
* refactor: internal/files

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

* fix: lint issues

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-08-04 10:11:03 -03:00
dependabot-preview[bot]
c98d9bc176
chore(deps): bump github.com/golangci/golangci-lint from 1.29.0 to 1.30.0 (#190)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.29.0 to 1.30.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.29.0...v1.30.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix: lint

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-08-04 03:18:44 +00:00
Carlos Alexandro Becker
f4f48fc1f9 chore(deps): update rpmpack and chglog
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-21 09:45:29 -03:00
dependabot-preview[bot]
c0e2a5544b
chore(deps): bump github.com/golangci/golangci-lint (#173)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.28.3 to 1.29.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.28.3...v1.29.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-21 09:24:23 -03:00
dependabot-preview[bot]
234662956a
chore(deps): bump github.com/mattn/go-zglob from 0.0.2 to 0.0.3 (#174)
Bumps [github.com/mattn/go-zglob](https://github.com/mattn/go-zglob) from 0.0.2 to 0.0.3.
- [Release notes](https://github.com/mattn/go-zglob/releases)
- [Commits](https://github.com/mattn/go-zglob/compare/v0.0.2...v0.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-21 09:24:14 -03:00
dependabot-preview[bot]
75c7222d4f
chore(deps): bump github.com/imdario/mergo from 0.3.9 to 0.3.10 (#171)
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.9 to 0.3.10.
- [Release notes](https://github.com/imdario/mergo/releases)
- [Commits](https://github.com/imdario/mergo/compare/v0.3.9...v0.3.10)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-20 10:41:08 -03:00
Erik G
d2e9097ac5
feat(#42): Support Changelogs (#158)
Co-authored-by: Dj Gilcrease <d.gilcrease@f5.com>

Co-authored-by: Dj Gilcrease <d.gilcrease@f5.com>
Co-authored-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
2020-07-13 15:10:03 +00:00
dependabot-preview[bot]
060f098c98
chore(deps): bump github.com/golangci/golangci-lint (#167)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.28.2 to 1.28.3.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.28.2...v1.28.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-13 09:39:20 -03:00
Carlos Alexandro Becker
c939cac13b fix: update rpmpack
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-11 10:34:43 -03:00
dependabot-preview[bot]
2f9461c7c0
chore(deps): bump github.com/golangci/golangci-lint (#164)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.28.1 to 1.28.2.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.28.1...v1.28.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-07-10 10:01:00 -03:00
Carlos Alexandro Becker
397d266f18
feat: allow creating meta packages (#159)
* feat: allow creating meta packages

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

* fix: rpm pack meta

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

* test: added acceptance tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-10 02:05:33 -03:00
dependabot-preview[bot]
e328bafa20
chore(deps): bump github.com/golangci/golangci-lint from 1.27.0 to 1.28.1 (#155)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.27.0 to 1.28.1.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.27.0...v1.28.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* fix: ignore gofumpt

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-09 10:25:24 -03:00
Carlos Alexandro Becker
b93ff6f946
feat: update rpmpack (#160)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-07-09 10:15:41 -03:00
dependabot-preview[bot]
a89d2c68e7
chore(deps): bump github.com/stretchr/testify from 1.6.0 to 1.6.1 (#149)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.6.0...v1.6.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-08 09:52:56 -03:00
dependabot-preview[bot]
68cb71dc9a
chore(deps): bump github.com/mattn/go-zglob from 0.0.1 to 0.0.2 (#147)
Bumps [github.com/mattn/go-zglob](https://github.com/mattn/go-zglob) from 0.0.1 to 0.0.2.
- [Release notes](https://github.com/mattn/go-zglob/releases)
- [Commits](https://github.com/mattn/go-zglob/compare/v0.0.1...v0.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-06-04 10:39:26 -03:00
dependabot-preview[bot]
f6731b49bf
chore(deps): bump github.com/stretchr/testify from 1.5.1 to 1.6.0 (#145)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.1 to 1.6.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.1...v1.6.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-05-29 09:46:53 -03:00
dependabot-preview[bot]
6f9fccf78f
chore(deps): bump github.com/golangci/golangci-lint from 1.26.0 to 1.27.0 (#139)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.26.0 to 1.27.0.
- [Release notes](https://github.com/golangci/golangci-lint/releases)
- [Changelog](https://github.com/golangci/golangci-lint/blob/master/CHANGELOG.md)
- [Commits](https://github.com/golangci/golangci-lint/compare/v1.26.0...v1.27.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-14 12:35:45 +00:00
dependabot-preview[bot]
8308135581
chore(deps): bump gopkg.in/yaml.v2 from 2.2.8 to 2.3.0 (#135)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.8 to 2.3.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.8...v2.3.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-05-13 16:36:39 -03:00
Carlos Alexandro Becker
2768948b4e
feat: update golangci-lint (#137)
* fix: golangci-lint

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

* feat: update golangci-lint

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

* fix: docs

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

* fix: lint issues

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

* fix: test

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

* fix: test

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-05-13 16:24:06 -03:00
dependabot-preview[bot]
e0254b2770
chore(deps): bump github.com/Masterminds/semver/v3 from 3.0.3 to 3.1.0 (#128)
Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.0.3 to 3.1.0.
- [Release notes](https://github.com/Masterminds/semver/releases)
- [Changelog](https://github.com/Masterminds/semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/semver/compare/v3.0.3...v3.1.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-04-17 11:01:11 -03:00
dependabot-preview[bot]
258c6ad70a
chore(deps): bump github.com/imdario/mergo from 0.3.8 to 0.3.9 (#124)
Bumps [github.com/imdario/mergo](https://github.com/imdario/mergo) from 0.3.8 to 0.3.9.
- [Release notes](https://github.com/imdario/mergo/releases)
- [Commits](https://github.com/imdario/mergo/compare/v0.3.8...v0.3.9)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2020-03-25 09:10:24 -03:00
dependabot-preview[bot]
4bb8f58133
chore(deps): bump github.com/stretchr/testify from 1.5.0 to 1.5.1 (#121)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.5.0 to 1.5.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.5.0...v1.5.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-20 09:54:06 -03:00
dependabot-preview[bot]
974cbd8435
chore(deps): bump github.com/stretchr/testify from 1.4.0 to 1.5.0 (#120)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.4.0 to 1.5.0.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.4.0...v1.5.0)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-19 10:19:25 -03:00
dependabot-preview[bot]
ebe75b08de
chore(deps): bump gopkg.in/yaml.v2 from 2.2.7 to 2.2.8 (#118)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.7 to 2.2.8.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.7...v2.2.8)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-02-18 10:16:01 -03:00
dependabot-preview[bot]
690f627895 chore(deps): bump github.com/pkg/errors from 0.8.1 to 0.9.1 (#116)
Bumps [github.com/pkg/errors](https://github.com/pkg/errors) from 0.8.1 to 0.9.1.
- [Release notes](https://github.com/pkg/errors/releases)
- [Commits](https://github.com/pkg/errors/compare/v0.8.1...v0.9.1)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2020-01-15 17:24:42 -03:00
Marc Sauter
5125453b31 fix: make epoch work again (#114)
* add epoch

* tests for epoch added

* tests for invalid epoch added
2019-12-31 11:55:19 -03:00
dependabot-preview[bot]
e3dbdd0fd1 chore(deps): bump github.com/Masterminds/semver/v3 from 3.0.2 to 3.0.3 (#112)
Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.0.2 to 3.0.3.
- [Release notes](https://github.com/Masterminds/semver/releases)
- [Changelog](https://github.com/Masterminds/semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/semver/compare/v3.0.2...v3.0.3)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-12-22 14:57:34 -03:00
Carlos Alexandro Becker
6ef61041eb
fix: bump rpmpack (#110)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-24 11:24:43 -03:00
dependabot-preview[bot]
ce77a2cbc8 chore(deps): bump github.com/Masterminds/semver/v3 from 3.0.1 to 3.0.2 (#106)
Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.0.1 to 3.0.2.
- [Release notes](https://github.com/Masterminds/semver/releases)
- [Changelog](https://github.com/Masterminds/semver/blob/master/CHANGELOG.md)
- [Commits](https://github.com/Masterminds/semver/compare/v3.0.1...v3.0.2)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 13:17:54 -03:00
dependabot-preview[bot]
c8eb33b40d chore(deps): bump gopkg.in/yaml.v2 from 2.2.5 to 2.2.7 (#107)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.5 to 2.2.7.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.5...v2.2.7)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-20 13:13:51 -03:00
Carlos Alexandro Becker
f5f0a26477
fix(rpm): build time and build host
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-06 11:54:35 -03:00
dependabot-preview[bot]
1b1448f9f8 chore(deps): bump gopkg.in/yaml.v2 from 2.2.4 to 2.2.5 (#102)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.2.4 to 2.2.5.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.2.4...v2.2.5)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>
2019-11-05 09:41:43 -03:00
Carlos Alexandro Becker
2dea0cedb8
fix(rpm): desc, summary and group (#99)
* fix(rpm): desc, summary and group

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

* test: added test cases

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-04 23:56:18 -03:00
Carlos Alexandro Becker
98a9b28f6f
chore(deps): update rpmpack
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-11-01 11:43:06 -03:00
Carlos Alexandro Becker
7cc6be1c6b
fix: rpm groups (#92)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-23 14:03:35 -03:00
Dj Gilcrease
b47eac0b54
Merge pull request #85 from djgilcrease/bugfix/issue-50
fix: parse the version as a semver
2019-10-09 18:11:58 -07:00
Carlos Alexandro Becker
d29b42a9de
clean: remove last mentions to rpmbuild (#84)
* clean: remove last mentions to rpmbuild

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

* fix: goproxy

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-09 16:30:17 -03:00
Dj Gilcrease
03193b2ab0 feat: provide more field support for rpms (#79)
* fix: properly add the PostRemove script, not the PostInstall script

* feat: provide more field support for rpms

New RPM fields
---
* Description
* OS <= info.Platform
* Licence
* URL <= info.Homepage
* Vendor
* Packager <= info.Maintainer
* Provides
* Require <= info.Depends
* Obsolete <= info.Replaces
* Suggests
* Conflicts

Fixes
---
* RPM Compression types are supported again
* RPM Config files are supported again
  * `rpmpack` will support all the rpm file types, so we could extend this more latter

* chore: disable wsl (a new linter in 1.20.x got golangci-lint) until we decide to enable it

* chore: address PR comments
2019-10-09 16:10:05 -03:00
Carlos Alexandro Becker
7a174b2de1
bump: deps (#81)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-10-05 09:46:58 -03:00
renovate[bot]
d3e2c4f776 chore(deps): update github.com/alecthomas/units commit hash to f65c72e (#73) 2019-10-03 09:39:16 -03:00
renovate[bot]
aa2f99138a chore(deps): update github.com/google/rpmpack commit hash to 4fb3ac7 (#74) 2019-10-03 09:38:48 -03:00
Carlos Alexandro Becker
793528c997
fix: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-09-10 15:03:53 -03:00
Dj Gilcrease
55c08981e6 feat: create RPM without rpmbuild (#67)
* feat(40): Create RPM without rpmbuild

* chore: update go.mod to remove the replace section now that the dependent MR has been merged
2019-09-10 15:01:43 -03:00
Carlos Alexandro Becker
20c1238eec
fix: build, tidy 2018-10-30 23:30:54 -03:00
Carlos Alexandro Becker
9bd8145ab5 chore: go modules 2018-10-29 09:34:39 -03:00