1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-23 21:36:21 +02:00
Commit Graph

91 Commits

Author SHA1 Message Date
Erik G 468bc138a6
test: Add tests with symlinked files. (#180)
* test(#132): Add tests with symlinked files.

* fix: Fix file name comparison in extractFileFromTarGz().


refs #132
2020-07-27 11:11:33 -03:00
Erik G 8920a77b95
fix: Reflect (pre)release in conventional file names. (#170)
* fix: Reflect (pre)release in conventional file names.

* test: Add tests for conventional file names.

* test: Make test case variables consistent.

Co-authored-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
2020-07-15 10:10:29 -03:00
Erik G 815450cd78
fix: Improve changelog formatting. (#169)
Co-authored-by: Erik Geiser <erik.geiser@redteam-pentesting.de>
2020-07-15 09:21:52 -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
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
astorath 4c6511a854
feat: version release/prerelease options (#111)
* feat: version release/prerelease options

* fix: review

* fix: lint

* fix: damn linters

* fix: acceptance tests

Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
2020-02-18 10:49:10 -03:00
Boris Djurdjevic 4daa0df21c
fix: handle multiline input for the Debian description field (#119)
The description field in the DEB control file supports multiline/verbatim
input. It is done by indenting the lines by two spaces. Before this patch,
the control file was broken if a user wanted to supply a multiline description.
2020-02-18 10:15:42 -03:00
Dj Gilcrease 7889c9b2b6
fix: add stricter linting (#87)
* add stricter linting
* As part of this it changes the API slightly changing all uses of the `nfpm.Info` object to accept a pointer to reduce memory usage as pointed out by `hugeParam: info is heavy (568 bytes); consider passing it by pointer (gocritic)`
2019-10-11 13:11:28 -07:00
Carlos Alexandro Becker 33156b2b19
fix: rules tests, overridables (#66)
* fix: rules tests, overridables

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

* doc: gogoc

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

* fix: rpm template

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

* fix: rpm template

Signed-off-by: Carlos Alexandro Becker <caarlos0@gmail.com>
2019-08-31 10:21:28 -03:00
Adrian Wennberg 75cf0f6b4e Added Packager and Epoch tags (#58)
* feat: Add optional packager tag to rpm spec

Using the `Maintainer` tag from deb as the `Packager` tag for rpm

See #57

* feat: Optional epoch field added to both rpm and dep packages

See #57

* test: Adding test for deb epoch field

Adding a unit test for the epoch field and fixing the implementation
of version number with epoch for deb packager.

See #57
2019-06-25 09:56:32 -03:00
Carlos Alexandro Becker 32909dea74
fix: lint issues 2019-03-04 10:14:05 -03:00
Michael Hanselmann 052766cdfa deb: Avoid emitting empty fields
The Debian policy[1] declares the following control file fields as
required for binary packages:

 * Package
 * Version
 * Section
 * Priority
 * Architecture
 * Maintainer
 * Description

All other fields are optional. A few programs handling .deb packages
emit warnings when optional fields exist without a value.

With this change the template generating the control file is updated to
omit empty values. Comments are added to denote mandatory fields.
A newly added test verifies the generated control file.

[1]
<https://www.debian.org/doc/debian-policy/ch-controlfields.html#
binary-package-control-files-debian-control>

Signed-off-by: Michael Hanselmann <public@hansmi.ch>
2019-03-04 10:03:59 -03:00
Carlos Alexandro Becker e9205e74c0
fix: lint issues 2018-09-12 13:17:59 -03:00
Carlos Alexandro Becker a0f04ab682
test: fix duplicated code and other issues 2018-06-04 09:08:27 -03:00
Carlos Alexandro Becker 36ec9c04e2 feat: deb: create empty managed dirs 2018-05-16 21:42:34 -03:00
tympanix 3000825622 chore: gofmt 2018-04-10 23:10:32 +02:00
tympanix fbe68cc0f9 refactor: overrides using explicit embedded struct 2018-04-10 17:39:43 +02:00
Carlos Alexandro Becker 769a497b09
chore: fmt 2018-04-09 13:33:51 -03:00
Tympanix b3e51e12b4 test: e2e test for rpm maintainer scripts 2018-04-09 13:19:45 -03:00
Tympanix d598c7fcbb test: e2e tests for deb maintainer scripts 2018-04-09 13:19:45 -03:00
Carlos Alexandro Becker 327533fa21 test: added test for dash version on deb pipe as well 2018-03-28 15:12:11 -03:00
Carlos Alexandro Becker db0bbe8ee6
chore: improving error handling and wrapping 2018-03-27 20:36:02 -03:00
Carlos Alexandro Becker 9f7e12ad8f
fix: arch map for debian packages
refs #21
2018-03-21 18:07:35 -03:00
Carlos Alexandro Becker c0f95401ef
fix: added failing test for #16 2018-03-10 14:40:56 -03:00
Carlos Alexandro Becker 95bf6ef939
fix: remove version prefix
closes #9
2018-02-28 08:26:29 -03:00
Carlos Alexandro Becker 9b70ad6db6
test: deb: added more tests 2018-02-25 17:29:31 -03:00
Carlos Alexandro Becker d1e56a3269
fix: deb: create subfolders and use GNU tar format 2018-02-25 14:56:29 -03:00
Carlos Alexandro Becker 4486870ddd
feat: handle rpmbuild version and adds suggests as well 2018-02-18 18:41:32 -03:00
Carlos Alexandro Becker 2d6378cbe4
feat: support recommending packages 2018-02-18 17:14:55 -03:00
Carlos Alexandro Becker b7566dc587
feat: deb now fully support config files 2018-02-17 18:49:09 -02:00
Carlos Alexandro Becker e5fe548add
test: added some more 2018-02-16 19:11:52 -02:00
Carlos Alexandro Becker 37a2dbf86b
fix: defaults 2018-02-12 19:15:37 -02:00
Carlos Alexandro Becker 8d6ebd98e2
dep and fixes 2018-02-05 00:54:03 -02:00
Carlos Alexandro Becker 173904cdbd
chore: renamed to nfpm 2018-02-04 23:53:22 -02:00
Carlos Alexandro Becker 19a3378b24
feat: wip: rpm: dedup testdata 2018-02-04 23:36:02 -02:00
Carlos Alexandro Becker f0e39135fb
fix: rename 2018-02-03 17:10:49 -02:00
Carlos Alexandro Becker f078c16da5
fix: removed unused context 2018-01-11 13:55:44 -02:00
Carlos Alexandro Becker 13c7004374
refactor: do not depend on dpkg anymore 2018-01-09 21:03:01 -02:00
Carlos Alexandro Becker 3ef70e5c0e
root owner and group 2018-01-04 11:36:58 -02:00
Carlos Alexandro Becker e9105fd545
more tests 2018-01-04 10:45:22 -02:00
Carlos Alexandro Becker bbf45571b4
first 2018-01-04 10:31:22 -02:00