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
After being educated about how to fix direct builds with NFPM, I attempted to implement the same changes in our .goreleaser.yaml file and received the following errors:
• starting release...
⨯ release failed after 0s error=yaml: unmarshal errors:
line 256: field platform not found in type config.NFPM
line 258: field arch not found in type config.NFPMRPM
Looking at the code, I see the relevant structs here:
Specifically, the platform and rpm/arch (not standalone arch) lines.
I assume that rpm/arch is being set automagically from arch, however I need the ability to override it for AIX because AIX ppc64 rpms expect rpm arch set to ppc. Linux ppc64 arch rpms expect rpm arch set to ppc64. This means we can't (without major modifications) use the already built in override capabilities in the nfpm code.
I'm not sure if platform is being set anywhere, but if it is I would guess it is set from the os. Again, I need to override this because the os is aix and the platform has to follow the pattern of aix#.#, such as aix7.2 in order to work.
Is your feature request related to a problem? Please describe.
I need to support AIX, preferably using rpm files. Currently we only have the option to do it via tar.gz packages.
Describe the solution you'd like
I would like to use nfpm rpm builds to create aix rpm files.
Describe alternatives you've considered
None, we use goreleaser exclusively for our builds.
Search
Supporter
Code of Conduct
Additional context
This would depend on goreleaser/nfpm#821
The text was updated successfully, but these errors were encountered: