Comments (1)
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:
goreleaser/pkg/config/config.go
Line 759 in ec2db4a
And:
goreleaser/pkg/config/config.go
Line 806 in ec2db4a
These structs do not contain the relevant fields that need passed to nfpm.
Here is a snippet from my nfpm.yaml where these are present and working:
name: "aix-somefile"
arch: "ppc64"
platform: "aix7.2"
version: "1.0.0"
vendor: Company
maintainer: Company Maintainer Email
description: Package Description
homepage: https://some-url.com
rpm:
arch: ppc
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.
from goreleaser.
Related Issues (20)
- Support Github Artifact Attestations HOT 4
- Draft release config is ignored for github release in latest version HOT 2
- Recommended to remove annoying thanks HOT 2
- allow to sign without notarizing
- Implement --auto-snapshot for build command too HOT 1
- Generated Homebrew formulae incompatible with brew v4.3.1 HOT 1
- Prebuilt builder error `prebuilt not found in type config.Build` HOT 2
- Gitlab, Get default branch fails in Gitlab CI HOT 5
- Add archive to -skip flag
- Cannot go install v2.0.0 HOT 3
- wrong current directory HOT 8
- init generates a version 1 config file HOT 1
- When `blobs: ids: []` is set, no artifacts should be uploaded
- Sign goreleaser nfpms HOT 1
- Building Multiple Binaries with a Single Command HOT 1
- Add checksum-related overrides for blobs HOT 2
- Can't add extra file to artifactory upload
- Support for Automatic Detection and Utilization of GOCACHEPROG Environment Variable HOT 7
- Goreleaser does not upload x86_64 package to AUR HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from goreleaser.