-
Notifications
You must be signed in to change notification settings - Fork 139
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
Install module package IDs on module enable
#1656
Install module package IDs on module enable
#1656
Conversation
This patch cannot work for more reasons specially when there are more module items from module stream.
Workflow -> dnf4
Workflow -> dnf5
Workflow -> dnf4 with your patch
The last two install package requests are conflicting therefore it will fail for request where updates are already available. |
I see two solution and both requires additional method in API of
Both options require new information stored, therefore it must be cleaned when |
Module packages should be explicitly specified when enabling modules, see rpm-software-management/libdnf#1656.
3923bd2
to
6d4d7b8
Compare
Thanks very much for the info. I've implemented solution (2) as you describe, and I think this is close to the behavior we want. The error message when enabling an incompatible module is now quite similar to DNF 5's:
However, with this patch and rpm-software-management/dnf#2086, DNF tests (
Looking into it. |
6d4d7b8
to
2925b24
Compare
2925b24
to
433252b
Compare
433252b
to
45aa4db
Compare
Like in DNF 5, we should require oneof the module items when a module is enabled. This way, a clearer error message is printed when trying to enable a module for an incompatible architecture. For https://issues.redhat.com/browse/RHEL-16580.
45aa4db
to
b112041
Compare
Closing this, the issue that would be fixed is not severe enough to warrant the breakage this could cause. |
This is a draft PR since tests are failing, and I'm sure there's something wrong with my understanding of the problem or the proposed fix. I'm opening this PR to get a second pair of eyes.
For https://issues.redhat.com/browse/RHEL-16580.
When enabling a module for an incompatible architecture (i.e. enabling an AArch64 module on an x86_64 system), DNF 4 users should see an appropriate error message. Currently, users only see "nothing provides" errors with no mention of the architecture incompatibility:
One way to achieve the desired result is to, on
module enable
, request to install the module package ID, rather than just requesting to installProvides: module(MODULENAME:STREAM)
. DNF 5 does so here (1, 2).This patch attempts to introduce the same fix in DNF 4. After this patch, the output of the same command as above shows "does not have compatible architecture" errors, as we desire: