You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
uploaded to local repository and trying to install it. I'm getting the following error:
$ doas apk add my_package
ERROR: my_package: package file format error
I managed to investigate this problem on the apk side and found that it complains about the missing mode data in the archive. So it can be worked around by modifying the nfpm.yaml like this:
However, this file_info attribute is actually very dangerous with such config, cause it can overwrite your /usr/bin, /usr/lib, etc permissions with some incorrect value, resulting in unusable system. So I'd rather fix the appropriate parts of nfpm code.
How can we reproduce this?
prepare the apk package with config described above, add to the repository and try installing it with apk add command
nfpm version
the one from https://github.com/goreleaser/nfpm/pull/804 (so git main, essentially)
Search
I did search for other open and closed issues before opening this.
Code of Conduct
I agree to follow this project's Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered:
What happened?
OK, I build the apk package with the following config
uploaded to local repository and trying to install it. I'm getting the following error:
I managed to investigate this problem on the apk side and found that it complains about the missing
mode
data in the archive. So it can be worked around by modifying thenfpm.yaml
like this:However, this
file_info
attribute is actually very dangerous with such config, cause it can overwrite your/usr/bin
,/usr/lib
, etc permissions with some incorrect value, resulting in unusable system. So I'd rather fix the appropriate parts of nfpm code.How can we reproduce this?
prepare the apk package with config described above, add to the repository and try installing it with
apk add
commandnfpm version
Search
Code of Conduct
Additional context
No response
The text was updated successfully, but these errors were encountered: