Skip to content

nFPM is not translating architecture to the platform specific equivalent. #917

@dosten

Description

@dosten

What happened?

Hi!

After reading the docs about the arch field, I supposed that setting it to something like x86_64 (that's the output of uname -m) will translate it to amd64 which is one of the valid architecture types for deb packages.

Looking at the code I found that's not the case, it's just renaming a few cases.

We should add some more common renames like:

  • aarch64 -> arm64
  • x86_64 -> amd64

If you agree I can send a PR.

How can we reproduce this?

Create a nfpm.yaml with

arch: x86_64

nfpm version

2.41.3

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions