-
Notifications
You must be signed in to change notification settings - Fork 94
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression: variables in --setopt
not parsed
#1941
Comments
i am open to pick this issue up, but i gotta know where to look, little first guidance will help a lot |
I just tried compiling dnf5 manually inside FROM fedora-minimal:41
RUN dnf5 install -y 'dnf5-command(builddep)'
COPY dnf5 .
RUN dnf5 builddep -y dnf5.spec --setopt=install_weak_deps=False
RUN cmake . --install-prefix /usr/ && make -j20
RUN echo '' > doc/cmake_install.cmake
RUN make install -j20
RUN dnf5 install --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' --setopt='terra.gpgkey=https://repos.fyralabs.com/terra$releasever/key.asc' terra-release -y Maybe it is possible that this issue does not come from |
The variables are indeed substituted only in the This is a difference from |
Are there plans to make the variables in |
I think it should be done, but it doesn't have a high priority right now. |
just tell where is the code i will do it myself. |
I would try to look into the aforementioned context, or main. The question also is if it's desired to replace variables in setopt in general, or only in repository setopts (there is a method |
In
dnf-3
,$releasever
and other variables passed into--setopt
would be expanded.This behaviour has been seen for older versions of
dnf5
(e.g.5.2.6.2
) but not on latest versions (5.2.7.0
)dnf-3
behaviourdnf5
behaviourWorking
Not working
Obtained latest
dnf5
viadnf up
in the container.The text was updated successfully, but these errors were encountered: