Giter Club home page Giter Club logo

Comments (1)

Dylan-M avatar Dylan-M commented on June 18, 2024

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:

type NFPM struct {

And:
type NFPMRPM struct {

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.