Closed devfbe closed 8 months ago
I finally found a documentation describing the package naming format:
https://wiki.alpinelinux.org/wiki/Package_policies
Relevant part:
Package versions are similar to gentoo or other distributions, e.g. 10.2.33, 4.5_alpha, 20200712-r0:
I inspected the linked version source code and figured out what the statements above mean (and I took a look at some alpine APKBUILD files to verify that:
An APK "full" version consists of
`
If I understood correctly, https://github.com/goreleaser/nfpm/pull/794 should fix it
thanks for the report, btw 🙏🩵
Wow, awesome, thanks for fixing that so quickly!
What happened?
I'm currently trying to package APK packages beside DEB and RPM packages. In my example I use the following configuration (explicitly set all versions)
When packaging this as deb, rpm and apk, the following package metadata will be created:
The created pkgver is invalid which can be checked using apk version --check (empty response means everything is okay):
Expectation: nfpm generated a package with
-r<release>
or_p<release>
- assume that-r<release>
is the best way here.Additionally, the resulting file name should not contain an architecture but only the version string (e.g.
dhcp-doc-4.4.3_p1-r4.apk
(name of the package,_p
if there is some kind of patch(?) version and then-r
if there is a package version specified)How can we reproduce this?
Build an apk package with the described configuration above, then:
nfpm version
Search
Code of Conduct
Additional context
Source code of the apk tools (version.c)