1
1
Fork 0
mirror of https://github.com/goreleaser/nfpm synced 2024-05-14 00:06:27 +02:00
Commit Graph

713 Commits

Author SHA1 Message Date
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 A Becker 475f856f83
test: fix wrong path
refs https://github.com/goreleaser/nfpm/pull/596#discussion_r1059437870

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-30 13:00:01 -03:00
caarlos0 11d8f44aa5 docs: update cmd docs 2022-12-30 15:54:55 +00:00
dependabot[bot] ba2143d994
chore(deps): bump benc-uk/workflow-dispatch from 1 to 121 (#598) 2022-12-30 09:13:26 -03:00
Carlos A Becker cf241e317b
docs: fix readme badge
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 22:40:19 -03:00
Carlos A Becker 5727085a7e
docs: improve tips & tricks
closes #561

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 22:38:08 -03:00
Carlos Alexandro Becker f2e5d2a1e3
fix(deb): changelog fixes (#597)
* fix(deb): changelog fixes

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Andrei Belov <defanator@users.noreply.github.com>

* fix: test

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
Co-authored-by: Andrei Belov <defanator@users.noreply.github.com>
2022-12-29 22:25:49 -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
Dj Gilcrease 0c2ef6b723
fix: add the non-overides package relation fields to allow env expansion (#593) 2022-12-29 21:07:34 -03:00
Carlos Alexandro Becker c46f14323a
docs: remove vercel deploy (#595)
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 21:04:56 -03:00
Carlos A Becker 51aaa7d701
docs: improve build
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 20:56:42 -03:00
Carlos A Becker 023da3d4fa
docs: update pip
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-12-29 11:18:10 -03:00
Carlos A Becker 9b853c3fe3
docs: pages build script 2022-12-29 11:04:58 -03:00
dependabot[bot] 7ad962bb69
chore(deps): bump goreleaser/goreleaser-action from 3 to 4 (#592)
Bumps [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) from 3 to 4.
- [Release notes](https://github.com/goreleaser/goreleaser-action/releases)
- [Commits](https://github.com/goreleaser/goreleaser-action/compare/v3...v4)

---
updated-dependencies:
- dependency-name: goreleaser/goreleaser-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-14 09:41:59 -03:00
dependabot[bot] 4316b600ac
feat(deps): bump github.com/ulikunitz/xz from 0.5.10 to 0.5.11 (#590)
Bumps [github.com/ulikunitz/xz](https://github.com/ulikunitz/xz) from 0.5.10 to 0.5.11.
- [Release notes](https://github.com/ulikunitz/xz/releases)
- [Commits](https://github.com/ulikunitz/xz/compare/v0.5.10...v0.5.11)

---
updated-dependencies:
- dependency-name: github.com/ulikunitz/xz
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-13 09:46:09 -03:00
Himanshu c80d81b47b
docs: fixes minor typos (#588) 2022-12-13 01:55:07 -03:00
Carlos Alexandro Becker 4551ecf493
chore: delete lock threads action
it has not been working for a while, didn't miss it
2022-12-12 09:39:31 -03:00
dependabot[bot] 1a8876e8bc
feat(deps): bump github.com/klauspost/compress from 1.15.12 to 1.15.13 (#587)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.12 to 1.15.13.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.15.12...v1.15.13)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-12-12 09:29:12 -03:00
James Tai ae586054aa
docs: Discourage "v" prefix for version numbers (#584)
Using a `v` prefix for the `version` field happens to work if the
version is semver-compatible, since the semver parser will strip the
`v`. If it is not semver-compatible, then a `v` prefix should not be
used, since some package managers (like deb) won't accept it.
2022-12-07 09:35:53 -03:00
Carlos A Becker 66760061ee
test: fix apk tests 2022-11-30 09:46:25 -03:00
dependabot[bot] 61de4b54e0
fix(deps): bump github.com/Masterminds/semver/v3 from 3.1.1 to 3.2.0 (#582)
Bumps [github.com/Masterminds/semver/v3](https://github.com/Masterminds/semver) from 3.1.1 to 3.2.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.1.1...v3.2.0)

---
updated-dependencies:
- dependency-name: github.com/Masterminds/semver/v3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-30 09:20:34 -03:00
Carlos Alexandro Becker 2918f99b60
fix: improve contents.type (#581)
* fix: improve contents.type

improved jsonschema and added validations

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

* fix: config|noreplace

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-24 10:12:29 -03:00
James Tai b30373beb0
docs: Add more detail to configuration docs (#579)
This adds more detail to the configuration reference in the docs. The
primary goal is to help users understand what each field does even if
they have not created packages before.
2022-11-24 10:12:00 -03:00
Carlos A Becker 280c04f44d
test: improve acceptance tests
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 14:49:18 -03:00
Carlos A Becker d200637174
chore: fix build
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 14:22:45 -03:00
Carlos A Becker 233ff4dcb2
fix: acceptance test
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 14:21:30 -03:00
Carlos Alexandro Becker 5f10dba792
fix: archlinux prerelease (#578)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-17 09:50: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
dependabot[bot] e1d35a1b63
feat(deps): bump github.com/invopop/jsonschema from 0.6.0 to 0.7.0 (#573)
Bumps [github.com/invopop/jsonschema](https://github.com/invopop/jsonschema) from 0.6.0 to 0.7.0.
- [Release notes](https://github.com/invopop/jsonschema/releases)
- [Commits](https://github.com/invopop/jsonschema/compare/v0.6.0...v0.7.0)

---
updated-dependencies:
- dependency-name: github.com/invopop/jsonschema
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-09 08:35:56 -03:00
dependabot[bot] 3fc3d9c9c4
chore(deps): bump anchore/sbom-action from 0.13.0 to 0.13.1 (#571)
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.13.0 to 0.13.1.
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Commits](https://github.com/anchore/sbom-action/compare/v0.13.0...v0.13.1)

---
updated-dependencies:
- dependency-name: anchore/sbom-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-08 09:57:38 -03:00
Carlos A Becker 38675f9a7e
docs: update schema
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-11-04 13:52:30 -03:00
dependabot[bot] 50853d3ecd
chore(deps): bump anchore/sbom-action from 0.12.0 to 0.13.0 (#570)
Bumps [anchore/sbom-action](https://github.com/anchore/sbom-action) from 0.12.0 to 0.13.0.
- [Release notes](https://github.com/anchore/sbom-action/releases)
- [Commits](https://github.com/anchore/sbom-action/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: anchore/sbom-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-31 11:12:51 -03:00
Arsen6331 b4bd7817cd
fix: allow using directories as contents in archlinux packager (#568)
* fix: Recursively add files if content is directory

* fix: Skip contents with wrong packager value

* test: Add acceptance tests for directories
2022-10-27 09:28:47 -03:00
dependabot[bot] f649caf8f2
feat(deps): bump github.com/klauspost/compress from 1.15.11 to 1.15.12 (#569)
Bumps [github.com/klauspost/compress](https://github.com/klauspost/compress) from 1.15.11 to 1.15.12.
- [Release notes](https://github.com/klauspost/compress/releases)
- [Changelog](https://github.com/klauspost/compress/blob/master/.goreleaser.yml)
- [Commits](https://github.com/klauspost/compress/compare/v1.15.11...v1.15.12)

---
updated-dependencies:
- dependency-name: github.com/klauspost/compress
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-27 09:26:52 -03:00
dependabot[bot] 2f0c3d3e9f
feat(deps): bump github.com/spf13/cobra from 1.6.0 to 1.6.1 (#566)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.6.0 to 1.6.1.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.6.0...v1.6.1)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-25 08:28:55 -03:00
dependabot[bot] db4a4e5bfe
feat(deps): bump github.com/stretchr/testify from 1.8.0 to 1.8.1 (#565)
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.0 to 1.8.1.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.0...v1.8.1)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-24 10:46:51 -03:00
Carlos Alexandro Becker fc0fe55cf7
docs: fix link 2022-10-19 10:58:18 -03:00
dependabot[bot] b7afbee1d3
chore(deps): bump sigstore/cosign-installer from 2.8.0 to 2.8.1 (#562)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 2.8.0 to 2.8.1.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v2.8.0...v2.8.1)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 10:07:22 -03:00
Carlos A Becker 46d2a44a13
test: improve coverage a bit 2022-10-15 14:58:33 -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
Carlos A Becker 1a66c73f3a
feat: update to go 1.19.2
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-13 17:48:14 -03:00
Carlos Alexandro Becker 7d7280d0fc
feat: allow to parse from stdin (#559)
Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>

Signed-off-by: Carlos A Becker <caarlos0@users.noreply.github.com>
2022-10-13 17:46:14 -03:00
dependabot[bot] 249917d3d4
feat(deps): bump github.com/spf13/cobra from 1.5.0 to 1.6.0 (#557)
Bumps [github.com/spf13/cobra](https://github.com/spf13/cobra) from 1.5.0 to 1.6.0.
- [Release notes](https://github.com/spf13/cobra/releases)
- [Commits](https://github.com/spf13/cobra/compare/v1.5.0...v1.6.0)

---
updated-dependencies:
- dependency-name: github.com/spf13/cobra
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-12 19:06:01 -03:00
dependabot[bot] a09a4315ce
chore(deps): bump sigstore/cosign-installer from 2.7.0 to 2.8.0 (#556)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 2.7.0 to 2.8.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v2.7.0...v2.8.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-11 22:42:41 -03:00
Dj Gilcrease 8a1b1fcc04
fix: dont modify slices in a loop (#554) 2022-09-29 11:49:55 -03:00
Carlos A Becker a7a2df2794
chore: announce patches too 2022-09-27 11:58:32 -03:00
Carlos A Becker f75a3fb627
chore: workflows being skipped when they shouldn't 2022-09-27 11:51:59 -03:00
Carlos A Becker 62aac74fdd
chore: fix workflow 2022-09-27 11:39:55 -03:00
dependabot[bot] 8140d26c07
chore(deps): bump sigstore/cosign-installer from 2.6.0 to 2.7.0 (#553)
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 2.6.0 to 2.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/v2.6.0...v2.7.0)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-26 10:23:23 -03:00