How to provide alternate depends for distro major versions? #650
Answered
by
djgilcrease
cognifloyd
asked this question in
Q&A
-
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.
Answered by
djgilcrease
Apr 14, 2023
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.
0 replies
Answer selected by
cognifloyd
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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/