How to provide alternate depends for distro major versions? #650
-
Sometimes package names change between major versions of distros. My current example is for RPM: I've seen this in the past with debian based distros as well, so a generic way to handle this distro major version conditional would be great. Maybe something like: overrides:
rpm_7:
depends:
- python3-devel
rpm_8:
depends:
- python38-devel This would be valid under the jsonschema since overrides uses patternProperties. Is anything like this planned? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
This is why you can use env vars in the depends section. So you can do something like |
Beta Was this translation helpful? Give feedback.
This is why you can use env vars in the depends section. So you can do something like
PHYTHON_PKG_NAME=python3-deval nfpm ...
https://nfpm.goreleaser.com/configuration/