-
-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
APK: setting release creates invalid package version #793
Comments
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
The prerelease may start with The "post release / subsequent package fixes" version can start with: The name "subsequent package fixes" seems to be misleading because a look at the alpine repository indicates, that the post_suffixes are mostly for adding additional values that are needed to lookup the upstream artifact when building. I would assume that the following configuration should lead to the following outcome:
Would you agree with that? If yes, I would create a merge request for that change. |
closes #793 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
If I understood correctly, #794 should fix it |
thanks for the report, btw 🙏🩵 |
Wow, awesome, thanks for fixing that so quickly! |
* fix(apk): conventional name template closes #793 Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> * fix: pkginfo Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com> --------- Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
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)
The text was updated successfully, but these errors were encountered: