1
1
mirror of https://github.com/goreleaser/nfpm synced 2024-10-01 02:21:49 +02:00
Commit Graph

423 Commits

Author SHA1 Message Date
Carlos Alexandro Becker
bf4f92763d
feat(ci): lint action, gocenter, tools (#304)
* feat(ci): lint action, gocenter, tools

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

* fix: fmt

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

* fix: lint issues

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

* fix: go generate

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-27 17:15:05 +00:00
Carlos Alexandro Becker
565e6a3fad feat: go 1.16
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-27 11:41:13 -03:00
Erik G
6192474bf8
fix: Fix file collision detection with per-file packagers (#303)
* fix: Fix file collision detection with per-file packagers

* fix typo
v2.2.5
2021-02-26 22:01:50 +00:00
cclerget
4a81c34939
fix: don't override mode/mtime file information if already set (#297) 2021-02-16 06:59:31 -08:00
Carlos Alexandro Becker
2da804eb01 fix(ci): docker experimental enable
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-10 16:56:08 -03:00
Carlos Alexandro Becker
2a8bf82506 refactor: crypto imports
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.2.4
2021-02-10 16:17:46 -03:00
Carlos Alexandro Becker
a7ffb9d7d5
fix: apk checksums (#295)
* fix: apk tests

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

* fix: apk checksum

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

* fix: test

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-02-10 19:14:29 +00:00
dependabot-preview[bot]
9839777927
chore(deps): bump github.com/goreleaser/fileglob from 0.3.1 to 0.4.0 (#293)
Bumps [github.com/goreleaser/fileglob](https://github.com/goreleaser/fileglob) from 0.3.1 to 0.4.0.
- [Release notes](https://github.com/goreleaser/fileglob/releases)
- [Commits](https://github.com/goreleaser/fileglob/compare/v0.3.1...v0.4.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-02-05 12:34:53 +00:00
Dj Gilcrease
3b7e01508a
fix: add the PAXHeaders for file checksum required by alpine 3.13+ (#291) 2021-02-02 20:37:17 -08:00
Erik G
de0df62c36
fix: Prevent destination collisions (#290)
* fix: Return an error when a contents have colliding destinations.

* doc: Improve symlink documentation.
2021-01-30 15:47:01 +00:00
dependabot-preview[bot]
ea1605eaed
chore(deps): bump github.com/golangci/golangci-lint (#289)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.34.1 to 1.36.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.34.1...v1.36.0)

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

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
2021-01-26 23:33:23 -03:00
Dj Gilcrease
489e88afba
fix: set the alpine linux version to v3.12 so the acceptance tests pass (#287) 2021-01-27 02:15:06 +00:00
Dj Gilcrease
a8e33991fc
fix: allow using an env var in the signature.key_file field (#282) v2.2.3 2021-01-14 10:32:10 -08:00
Carlos Alexandro Becker
e16b06acc9 chore(ci): login to ghcr too
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2021-01-05 09:13:06 -03:00
Carlos Alexandro Becker
cbacedfe7e fix(ci): use buildx
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.2.2
2021-01-04 14:44:56 -03:00
Carlos Alexandro Becker
971647d75e fix: typo
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.2.1
2020-12-31 16:49:13 -03:00
Carlos Alexandro Becker
863c60606d fix: arm64 docker img
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-31 15:29:49 -03:00
Carlos Alexandro Becker
23aaf424d3
feat: improve docker image (#274)
* feat: improve docker image

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

* fix: arm64, deprecations

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.2.0
2020-12-31 10:32:17 -03:00
Carlos Alexandro Becker
c53266e2c4 chore: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-30 17:36:04 -03:00
Carlos Alexandro Becker
17af87eda2
fix: race condition and remove unused code (#273)
* refactor: small code improvements

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

* refactor: small code improvements

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

* fix: test

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

* test: race condition

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

* fix: race

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

* test: fix invalid file

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

* docs: fix synlinks/indent

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

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
v2.1.2
2020-12-30 19:15:16 +00:00
dependabot-preview[bot]
b259c6c0de
chore(deps): bump github.com/golangci/golangci-lint (#272)
Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.34.0 to 1.34.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.34.0...v1.34.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-12-30 09:29:38 -03:00
dependabot-preview[bot]
4bf2575c1c
chore(deps): bump github.com/golangci/golangci-lint from 1.33.0 to 1.34.0 (#271)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.33.0 to 1.34.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.33.0...v1.34.0)

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

* fix: linting issues

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

* fix: simplify golangci-lint config

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

* fix: simplify golangci-lint config

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>
v2.1.1
2020-12-29 12:29:59 -03:00
Carlos Alexandro Becker
86c1007d31 docs: fix twitter link
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-29 12:06:39 -03:00
Carlos Alexandro Becker
d9430e7c38
feat: update deps (#270)
* feat: update deps

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

* fix: replace

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.1.0
2020-12-25 20:29:34 -03:00
Carlos Alexandro Becker
2770e5be98
feat: more deprecated things to remove (#269)
* feat: more deprecated things to remove

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

* feat: more deprecated things to remove

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

* fix: format

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-25 13:15:15 +00:00
Carlos Alexandro Becker
bd5888e968
docs: fix godoc link 2020-12-23 15:41:23 -03:00
Carlos Alexandro Becker
62357a65e2
feat: version as v2 (#268)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v2.0.0
2020-12-23 13:25:57 +00:00
Carlos Alexandro Becker
19817233b5
feat: remove deprecated options (#267)
* feat: remove deprecated options

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

* test: fixing

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

* fix: configs

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

* fix: tempdir

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

* fix: fmt

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

* feat: go 1.15

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

* test: fix

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

* test: fix

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

* test: fix

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

* fix: tests

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

* refactor: test

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

* fix: lint

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

* fix: import

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

* fix: test

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

* fix: symlink

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-12-22 21:28:32 -03:00
Dj Gilcrease
df152db001
fix: RPM Verify signature: BAD PARAMETERS when installing from a repo, but not a local file (#266)
* chore: reporoduce the issue in acceptance tests

* fix: use patched version of rpmpack until upstream MR is merged
2020-12-22 08:23:11 -03:00
Dj Gilcrease
c4ae30d749
feat: try to clean up and simplify the file adding interface (#255)
* feat: cleanup and simplify the file adding interface

* docs: update the configuration docs to focus on the new contents format for specifying files

* docs: correct spelling

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-12-15 13:47:00 -03:00
Dj Gilcrease
8535159b05
fix: ensure nfpm can run on windows and still build correct rpm, deb, and apk packages (#262)
* fix: ensure nfpm can run on windows and still build correct rpm, deb, and apk packages

fix: add windows test job

* fix: ensure file close happens in the correct order on windows

* fix: ensure eol is set to lf

* chore: update the go version to be consistent between windows and ubuntu

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: update comments

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>

* chore: rerun make deps

* chore: fix .gitattributes to ensure images are not touched

* chore: run make fmt

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
v1.10.3
2020-12-09 18:28:30 +00:00
dependabot-preview[bot]
1d6d639023
chore(deps): bump github.com/goreleaser/fileglob from 0.3.0 to 0.3.1 (#264)
Bumps [github.com/goreleaser/fileglob](https://github.com/goreleaser/fileglob) from 0.3.0 to 0.3.1.
- [Release notes](https://github.com/goreleaser/fileglob/releases)
- [Commits](https://github.com/goreleaser/fileglob/compare/v0.3.0...v0.3.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-12-09 08:37:45 -03:00
wwade
738ac8b236
test: Intergate and test rpmpack ghost file fix (#261)
Bump github.com/google/rpmpack to integrate the ghost file handling
fix [google/rpmpack 52].

Updated the TestRPMGhostFiles fix to test the updated
functionality. Now, we expect that the files are listed in the RPM
header, but without any cpio content.

This is an extension of PR #246.

[google/rpmpack 52]: https://github.com/google/rpmpack/pull/52

Co-authored-by: wwade <wwade@users.noreply.github.com>
2020-12-08 18:37:51 -03:00
dependabot-preview[bot]
8dc2e90ae1
chore(deps): bump github.com/golangci/golangci-lint from 1.32.2 to 1.33.0 (#257)
* chore(deps): bump github.com/golangci/golangci-lint

Bumps [github.com/golangci/golangci-lint](https://github.com/golangci/golangci-lint) from 1.32.2 to 1.33.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.32.2...v1.33.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>
v1.10.2
2020-11-27 02:17:14 +00:00
dependabot-preview[bot]
c3cf153499
chore(deps): bump gopkg.in/yaml.v2 from 2.3.0 to 2.4.0 (#259)
Bumps [gopkg.in/yaml.v2](https://github.com/go-yaml/yaml) from 2.3.0 to 2.4.0.
- [Release notes](https://github.com/go-yaml/yaml/releases)
- [Commits](https://github.com/go-yaml/yaml/compare/v2.3.0...v2.4.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-11-26 10:30:04 -03:00
dependabot-preview[bot]
942f8f57be
chore(deps): bump github.com/Masterminds/semver/v3 from 3.1.0 to 3.1.1 (#258)
Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.1.0 to 3.1.1.
- [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.1.0...v3.1.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-11-24 09:21:11 -03:00
Benno
b196efa03f
test: Add APK and RSA sign test (#233)
* test: Add APK and RSA sign test

To increase test coverage.

See #229

* fix: lint errors

Fix gosec lint errors

Update #233

* fix: create temp file in OS temp

* test: Improve RSA error testing.

Co-authored-by: Erik Geiser <erik.geiser@posteo.net>
2020-11-21 10:34:35 -03:00
Carlos Alexandro Becker
c55e44b068
chore(ci): fix lock-inactive 2020-11-18 15:27:10 -03:00
Carlos Alexandro Becker
297252d1c1 chore(ci): lock outdated issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-16 21:48:02 -03:00
Carlos Alexandro Becker
4d29243a14 chore(ci): lock outdated issues
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-16 21:46:25 -03:00
Carlos Alexandro Becker
7feb0818ff
fix: invalid zip file (#253)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v1.10.1
2020-11-10 18:25:58 -03:00
Carlos Alexandro Becker
105a426161
chore(deps): bump github.com/golangci/golangci-lint from 1.31.0 to 1.32.2 (#251)
* chore(deps): bump github.com/golangci/golangci-lint from 1.31.0 to 1.32.2

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

* fix: errors.is

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

* fix: typo

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

* fix: typo

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

* test: fix

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
v1.10.0
2020-11-10 10:35:00 -03:00
Erik G
7839385b21
feat: add an option to disable globbing (#248)
* feat: Add option to disable globbing.

* test: Fix failing tests.

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-11-10 09:37:29 -03:00
Carlos Alexandro Becker
b93d8e6452 test: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-10 09:34:52 -03:00
Carlos Alexandro Becker
f287ec7320 chore: go mod tidy
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-10 09:32:33 -03:00
dependabot-preview[bot]
91af31675a
chore(deps): bump github.com/goreleaser/fileglob from 0.2.1 to 0.3.0 (#250)
Bumps [github.com/goreleaser/fileglob](https://github.com/goreleaser/fileglob) from 0.2.1 to 0.3.0.
- [Release notes](https://github.com/goreleaser/fileglob/releases)
- [Commits](https://github.com/goreleaser/fileglob/compare/v0.2.1...v0.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-11-10 09:30:21 -03:00
dependabot-preview[bot]
d0b3637e61
chore(deps): bump github.com/goreleaser/chglog from 0.1.1 to 0.1.2 (#249)
Bumps [github.com/goreleaser/chglog](https://github.com/goreleaser/chglog) from 0.1.1 to 0.1.2.
- [Release notes](https://github.com/goreleaser/chglog/releases)
- [Changelog](https://github.com/goreleaser/chglog/blob/master/.goreleaser.yml)
- [Commits](https://github.com/goreleaser/chglog/compare/v0.1.1...v0.1.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-11-10 09:22:23 -03:00
Carlos Alexandro Becker
2e41d957e5
refactor: simplify rpm add file (#247)
Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2020-11-09 03:54:37 +00:00
wwade
8c19c6a283
feat: Support RPM ghost files (#245)
From the [Maximum RPM] guide:

    The %ghost Directive

    As we mentioned in the Section called The %files List, if a file
    is specified in the %files list, that file will automatically be
    included in the package. There are times when a file should be
    owned by the package but not installed - log files and state files
    are good examples of cases you might desire this to happen.

    The way to achieve this, is to use the %ghost directive. By adding
    this directive to the line containing a file, RPM will know about
    the ghosted file, but will not add it to the package.

Ghost files are specified using `Type: rpmpack.GhostFile` when
constructing the output package.

The test ensures that we have:
 - The target file present in the RPM.
 - The specified mode attributes (although not really important,
 either).
 - An empty file *[1]* in the RPM for the named ghost,
see [google/rpmpack #51].

*[1] Instead of an empty file, no file should be created, but this is
not possible until the upstream issue is resolved.*

[Maximum RPM]:
http://ftp.rpm.org/max-rpm/s1-rpm-inside-files-list-directives.html
[google/rpmpack #51]: https://github.com/google/rpmpack/issues/51

Co-authored-by: wwade <wwade@users.noreply.github.com>
2020-11-08 17:10:27 -03:00
Carlos Alexandro Becker
a83e6466a0
feat: replace glob library (#244)
* feat: replace glob library

BREAKING CHANGE: may have unintended side-effects.

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

* fix: delimiter and patterns starting with ./

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

* fix: use fileglob

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

* test: fixed some wrong tests

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

* fix: tests

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

* fix: tests

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2020-11-08 17:09:12 -03:00