-
Notifications
You must be signed in to change notification settings - Fork 142
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
generate_completion_cache
does not respect --setopt=cachedir
#509
Comments
Hi, I agree this is an issue when the Regarding the second part of your report, I was not able to reproduce it running Fedora 38 with current sqlite3 3.40.1. I am getting the expected message in log:
What is your configuration please? |
The sqlite3 version I observed this with is 3.43.2 I'm on NixOS unstable, running dnf in the Nix sandbox. So |
Thanks. I recall some reported issues with sqlite3 >= 3.42, will try testing it with some Fedora Rawhide container to reproduce it and figure out the cause. When the bash completion cache is unable to be generated, it should not affect the dnf operation. Speaking about the hard-coded cache path for |
I apologize, but I'm unable to reproduce the issue. I tested the Fedora Rawhide container with dnf 4.18.1, and sqlite 3.44.0 and 3.43.2 versions, but it consistently generates only the log message. I attempted to simulate your scenario by making the It appears more like a potential bug in the sqlite3 library you're using, as it's not triggering an exception but instead leading to a segmentation fault. I'm not sure what else I can do at this point... I'll keep the ticket open for the originally reported error with low priority though, as mentioned earlier, our current priorities are different, and this is likely to result in a log report under normal circumstances. |
Thanks for investigating this anyway. :) Maybe the bug is in the sqlite3 nix package. |
The cache file of the plugin is hard-coded in the code and does not respect
--setopt=cachedir
:dnf-plugins-core/plugins/generate_completion_cache.py
Line 34 in aee9cac
This causes problems in situations where
/var/tmp
isn't writable.Also, there seem some bug in some sqlite3 connected C code called by this plugin, leading a segmentation fault in case the cache dir cannot be created. I didn't find the time to track this down, but here is the error in case you are interested in looking into this:
The text was updated successfully, but these errors were encountered: