Carlos Alexandro Becker
3f96cfd981
chore: fmt
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2026-06-06 10:03:56 -03:00
Carlos Alexandro Becker
dc96073275
feat: add fang support for styled CLI output ( #1068 )
...
* feat: add fang support for styled CLI output
Replace direct cobra Execute with fang.Execute to get styled help/usage
pages, styled errors, shell completions, and signal handling.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* refactor: remove man command and version template, fang handles both
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
* fix: version
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: diff
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: finalize conflict resolution validation
Agent-Logs-Url: https://github.com/goreleaser/nfpm/sessions/6d839ea1-01c6-43c7-8734-42026ed2f489
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com >
* chore: restore unintended docs module dependency files
Agent-Logs-Url: https://github.com/goreleaser/nfpm/sessions/6d839ea1-01c6-43c7-8734-42026ed2f489
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com >
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com >
Co-authored-by: caarlos0 <245435+caarlos0@users.noreply.github.com >
2026-04-18 01:24:38 -03:00
Dj Gilcrease
432fb6710a
feat: add alpha msix support ( #1051 )
2026-03-20 11:14:55 -03:00
Carlos Alexandro Becker
c72e5be5a9
refactor: modernize
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2026-03-11 12:47:01 -03:00
Carlos Alexandro Becker
21d6ae01e3
docs: migrate to hugo and hextra ( #970 )
...
* docs: migrate to hugo and hextra
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: cleanup
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: htmltest
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* ci: update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: eof
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* docs: udpate
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* docs: improvements
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* ci: fix
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* better icons
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: updates
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* wip
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-11-16 21:34:58 -03:00
Ville Skyttä
d0d7d061b6
refactor: use stdlib maps ( #942 )
2025-06-20 18:43:46 -03:00
Carlos Alexandro Becker
c94b6a1433
fix: lint issues, modernize codebase ( #922 )
2025-03-29 08:57:48 -03:00
Carlos Alexandro Becker
17cc289506
fix: nfpm init changelog file name
...
refs https://github.com/goreleaser/nfpm/issues/919
2025-03-23 17:17:42 -03:00
Carlos Alexandro Becker
f9d9d19266
test: test centos10, fedora 40+ ( #899 )
...
* test: test centos10, fedora 40+
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: typos
* fix: typo
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2025-01-11 15:45:12 -03:00
Carlos Alexandro Becker
9aef48ec15
fix: improve init
2024-10-25 11:32:34 -03:00
Kirill
b3e7ff915f
fix(deb): dpkg-sig format ( #841 )
...
* fix dpkg sig
* add tests
* fix imports
---------
Co-authored-by: k.safin@npo-echelon.ru <k.safin@npo-echelon.ru >
2024-07-09 09:39:10 -03:00
Weston Schmidt
bc5c3bd876
feat: support for ipk packages ( #818 )
...
Implements #507 .
* Adds ipk support for keywords used by OpenWRT and Yocto.
* MD5sum is explicitly excluded due to insecurity.
* SHA256Sum excluded due packages not being individually signed,
instead, the feed of packages is checksummed and signed externally.
* Adds code to nfpm package to automatically enumerate the supported
packaging types where possible.
2024-05-08 16:02:39 -03:00
Yaroslav
1667ef9585
feat: support PKCS8 keys for APK signing ( #804 )
...
* support PKCS8 keys for APK signing
Call correct parsing function for given RSA key depending on its PEM
header. So we can use both PKCS1 and PKCS8 keys to sign APK files.
Fixes https://github.com/goreleaser/nfpm/issues/799
* fix golangci-lint warnings
2024-03-27 10:28:44 -03:00
Carlos Alexandro Becker
7b3fb8b759
fix: lint issues
2024-03-19 10:14:49 -03:00
Carlos Alexandro Becker
c2fe69eec0
fix: modtime ( #758 )
...
closes #757
2023-12-26 08:51:38 -03:00
Carlos Alexandro Becker
99bf0d0cf9
test: testifylint fixes ( #753 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2023-12-17 15:46:28 -03:00
Carlos Alexandro Becker
9c4fc0e886
feat: reproducible packages ( #748 )
...
* feat: allow to set a build date
defaults to $SOURCE_DATE_EPOCH
closes #744
closes #734
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: rename to mtime
* docs: fix systemd note
closes #739
* fix: improve arch packager
* fix: arch test
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: improve apk packager
* fix: improve deb special files
* fix: reuse keys func
* fix: deps
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2023-12-07 13:58:36 -03:00
Carlos Alexandro Becker
216b17ffff
fix: example should not have prefixed version
...
closes #730
2023-10-31 16:33:03 +00:00
Carlos Alexandro Becker
d309eb6015
fix: windows issues ( #690 )
...
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2023-07-12 22:09:28 -03:00
Yaron de Leeuw
10d777660e
feat: unfork rpmpack. ( #688 )
...
Go back to using upstream github.com/google/rpmpack instead of nfpm's
forked version.
See #640
2023-07-10 09:25:05 -03:00
Carlos Alexandro Becker
f8c8ab0057
fix: use goversion lib ( #685 )
...
* feat: use goversion lib
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: trailing empty line
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2023-06-27 10:31:04 -03:00
Carlos Alexandro Becker
aff8ca31e9
feat: update protonmail/crypto ( #680 )
...
* feat: update protonmail/crypto
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: update
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: actually run the centos tests
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* chore: improve test ordering
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: signing rpms
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* feat: rpm.signature.format
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* test: improvements
* Revert "feat: rpm.signature.format"
This reverts commit 9c46a58fff .
* fix: revert unneeded changes
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* fix: use my fork
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
* revert: some unneeded changes
* test: fix order
* chore: finally fixed
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
---------
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2023-06-26 10:19:35 -03:00
Carlos Alexandro Becker
af65ba8a60
chore: remove some panics
...
It'll only error if the flag doesn't exist, which is not that bad, so
I just removed the panics for now... like the other options set the same
way.
2023-06-05 17:45:31 +00:00
Ville Skyttä
8b1af19c32
feat: completion improvements ( #668 )
...
* feat: add flag argument completions
* feat: do not offer completions for commands taking no args
2023-06-05 13:01:30 -03:00
Carlos Alexandro Becker
38f9376d59
refactor: stricter golangci-lint ruleset ( #631 )
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2023-03-09 10:02:20 -03:00
Carlos Alexandro Becker
745ad27658
feat: wrap pgp errors ( #630 )
2023-03-04 12:54:42 -03:00
Carlos A Becker
5b082c88bc
docs: udpate
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2023-01-02 22:26:17 -03:00
Carlos Alexandro Becker
dedee6d6b1
fix: do not encourage using /usr/local/bin ( #596 )
...
* fix: do not encourage using /usr/local/bin
Examples, tests and docs often refer to /usr/local/bin, which should
only be used for things compiled locally, which is not the case of
installed packages.
Changed that to /usr/bin, and also some usages of things like
/usr/something to /usr/share/something.
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix: complex test
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-12-29 22:19:38 -03:00
Carlos Alexandro Becker
b15966ccd6
fix: relative paths to dirs ( #576 )
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-11-14 09:39:48 -03:00
Carlos Alexandro Becker
5c3cc38943
fix: archlinux globs ( #574 )
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-11-12 00:50:16 -03:00
Arsen6331
a18661b627
feat: add support for Arch Linux packages ( #543 )
...
* feat: add support for Arch Linux packages
* test: Add initial tests
* test: Increase coverage by modifying example info
* test: Add test for ArchLinux.ConventionalFileName()
* docs: Return error if package name is invalid
* fix: Make empty name invalid
* fix: Add replaces field to .PKGINFO generator
* test: Add additional tests
* test: Test for added replaces field
* docs: Add more comments
* style: Run gofumpt
* fix: Handle errors as recommended by linter
* fix: Allow changing the pkgbase
* style: Resolve semgrep findings
* docs: Change docs to reflect new Arch Linux packager
* docs: Fix spelling mistake in comment
Co-authored-by: Dj Gilcrease <digitalxero@gmail.com >
* docs: use aspell to fix all spelling mistakes
* feat: Handle packaging formats with non-distinct file extensions as described in #546
* fix: Add newline to generated .INSTALL file
* fix: Take into account provided info for non-symlink files
* docs: Fix names for arch-specific scripts in documentation
* fix: Only consider files with the correct packager field
* fix: Use correct scripts field for post_remove script
* test: Implement archlinux acceptance tests
* test: Add archlinux to acceptance_test.go
* test: Add archlinux to github test matrix
* test: Use updated build.yml from main branch
* Fix ConventionalExtension() for apk
* fix: Take epoch value into account
* fix: Add arm5 and arm6 architectures
Co-authored-by: Dj Gilcrease <digitalxero@gmail.com >
Co-authored-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com >
2022-10-15 14:54:36 -03:00
Dj Gilcrease
4db80ebff3
feat: allow env expansion in conflicts, suggests, recommends, depends… ( #548 )
...
* feat: allow env expansion in conflicts, suggests, recommends, depends, provides, and replaces. Ensuring empty env vars get stripped to not cause issues
* added test for boolean dependencies for rpm, deb, and apk.
* fix: fork rpmpack to make it easier to add features and adapt it
* test: fix linter issues
* test: fix ruleguard issues
2022-09-24 10:07:11 -07:00
Carlos Alexandro Becker
92d4dc23ce
fix: govulncheck, semgrep & ruleguard scan/fixes ( #544 )
...
* chore: added some scan jobs
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix: version
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* chore: dispatch
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix: ruleguard and semgrep issues
* fix: syntax
* fix: skip-go-installation no longer a valid option
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-09-11 22:31:51 -03:00
Carlos Alexandro Becker
437d9ef31a
feat: upgrade to go 1.19 ( #542 )
...
* refactor: remove usage of ioutil
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* fix(ci): actually use go 1.19
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-08-22 09:39:40 -03:00
Carlos A Becker
47d15255b0
Revert "feat: removing changelog generation"
...
This reverts commit 816dd05151 .
2022-08-10 00:46:47 -03:00
Carlos A Becker
816dd05151
feat: removing changelog generation
...
breaking change: removing changelog generation from nfpm... users will now have to provide a changelog file/data according to the format they are using
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-08-10 00:45:33 -03:00
Carlos Alexandro Becker
488938929f
feat: update jsonschema library ( #521 )
...
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
2022-06-13 09:25:29 -03:00
Carlos Alexandro Becker
d1c1066609
feat: implement dpkg-sig Package signing ( #515 )
...
* implement dpkg-sig Package signing
* Fix dpkgsig template syntax
* Fix dpkgsig template syntax
* Correctly handle template errors when reading dpkg-sig templates
* Fix dkpgsig signature templateing
* refactor: io.Copy
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* refactor: deb signature
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* feat: acceptance test
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* docs: document new option
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* test: acceptance
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* test: acceptance
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
* chore: typo
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com >
Co-authored-by: Sas Swart <sas.swart@xneelo.com >
2022-06-11 23:32:07 -03:00
Sas Swart
1eb3837edc
feat: implement dpkg-sig Package signing ( #508 )
...
* implement dpkg-sig Package signing
* Fix dpkgsig template syntax
* Fix dpkgsig template syntax
* Correctly handle template errors when reading dpkg-sig templates
* Fix dkpgsig signature templateing
2022-05-30 10:34:45 -03:00
Janne Holopainen
1e26cfc6c7
fix: typo on 'package' commands --help ( #512 )
2022-05-24 16:19:01 -03:00
Carlos Alexandro Becker
dcf239f316
feat(deps): switch back to cobra ( #506 )
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-05-07 23:28:43 -03:00
Ville Skyttä
b684867299
style: spelling and grammar fixes ( #462 )
2022-02-21 15:53:33 -03:00
Carlos Alexandro Becker
13e76671c0
feat: generate man pages ( #443 )
...
* feat: migrate to coral
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
* feat: generate man pages
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-02-02 23:30:46 -03:00
Carlos Alexandro Becker
596412c6d1
feat: migrate to coral ( #442 )
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2022-02-02 23:29:52 -03:00
Carlos A Becker
c33782561a
docs: update help after cobra upgrade
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2021-12-15 15:20:55 -03:00
Erik Geiser
206d797843
fix: destinations for files containing matchers when globbing is disabled ( #410 )
...
* Fix destinations for files containing matchers when globbing is disabled.
* Change test case to be compatible with Windows filesystem
2021-12-01 11:38:50 -03:00
Erik G
3f068f057c
fix: Improve performance of content destination collision detection ( #388 )
...
* Fix: Improve performance of content destination collision detection.
* Remove duplicate info.Validate call
* Fix tests.
* Remove another Validate call.
2021-11-06 14:10:46 -03:00
Carlos A Becker
fb0a007440
chore: fmt
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2021-10-12 14:42:00 -03:00
Carlos Alexandro Becker
5c895f6e80
feat: jsonschema ( #350 )
...
* feat: jsonschema
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
* fix: gitattr
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
* docs: schema
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
* docs: schema
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
* docs: improvements
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2021-07-07 10:20:34 -07:00
Carlos A Becker
8a05df1908
feat: updates after cobra update
...
Signed-off-by: Carlos A Becker <caarlos0@gmail.com >
2021-07-07 01:06:45 +00:00