OS_VERSION in recipe.yml

https://blue-build.org/reference/recipe/ while defining the rpm-ostree module in reciple.yml it refers to %OS_VERSION% in the from section like so
- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
my question is, is that a placeholder or it automatically gets replaced in the build pipeline
BlueBuild
recipe.yml
A recipe.yml file is used to configure a custom image.
3 Replies
antiderivative
antiderivativeOP4mo ago
here's the entire module
- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
replace:
- from-repo: https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
packages:
- libfprint-tod
remove:
- libfprint
install:
- libfprint-tod-goodix
- type: rpm-ostree
repos:
- https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
replace:
- from-repo: https://copr.fedorainfracloud.org/coprs/antiderivative/libfprint-tod-goodix-0.0.9/repo/fedora-%OS_VERSION%/antiderivative-libfprint-tod-goodix-0.0.9-fedora-%OS_VERSION%.repo
packages:
- libfprint-tod
remove:
- libfprint
install:
- libfprint-tod-goodix
the %OS_VERSION% magic string only work in repos or it works in --from-repo also?
xyny
xyny4mo ago
it gets automatically replaced it should work anywhere in the module i think including install: if you want to install from an URL try it!
antiderivative
antiderivativeOP4mo ago
Yeah, thanks for clarifying, got it to work.
Want results from more Discord servers?
Add your server