Repository navigation
Get the config directory from $XDG_CONFIG_HOME if it is set - #1769
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the Highlights
🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request correctly implements support for the $XDG_CONFIG_HOME environment variable for locating the toolbox configuration directory. My review includes a suggestion to refactor the shell command for setting the configuration path to be more idiomatic and robust by using parameter expansion. This improves code clarity and maintainability.
|
✔️ unit-test SUCCESS in 2m 11s |
|
✔️ unit-test SUCCESS in 2m 08s |
debarshiray
left a comment
There was a problem hiding this comment.
Thanks for working on this, @ymcx and my apologies for the delay! The overall code changes look good to me.
Could you please use your real name and email address in the Git commit message, and squash both the commits together (because they are one single logical change)?
No worries.
Which email address do you want me to use? Do I need to use the real address that is linked to this account, or will any address work that can be used to contact me? |
The real name and email address requirement is for tracking copyright holders in case a licensing issue crops up. So, any email address that can be used to contact you is enough. :) Also, note, for the sake of completeness: The Projects as diverse as GCC, GnuPG, Linux, Moby and Podman don't allow anonymous or pseudonymous contributions. |
0f5e62a to
f999655
Compare
|
Will this work? I don't think I can sign the commit with this email address.
Thanks for the explanation! I tried looking for the related guidelines but didn't find them elsewhere. |
|
✔️ unit-test SUCCESS in 2m 16s |
... instead of hard coding ~/.config. This is specified in the XDG Base Directory Specification [1]. [1] https://specifications.freedesktop.org/basedir/latest/ containers#1766
f999655 to
b324146
Compare
debarshiray
left a comment
There was a problem hiding this comment.
Thanks for the updates, @ymcx ! If it's a valid email address that can be used to contact you, then it's fine. :)
I took the liberty to rebase against main and added a link to the XDG Base Directory specification for future reference.
The changes seem to work well in my testing. Let's merge once the CI finishes.
|
Unrelated to the main goal of this pull request, but somewhat related, two things came to my notice. First, there are some instances of It would be a cosmetic change because Second, we need to migrate away from @ymcx does any of those interest you? :) |
|
✔️ unit-test SUCCESS in 2m 18s |
These are odd: ... and we started seeing them recently in #1798 I am going to take a leap of faith and ignore this failure on the assumption that it's something to do with the Software Factory infrastructure, because everything was fine a week ago and nothing relevant to these tests changed since then. |
|
Thank you for your contribution!
Let me know. :) |
Sorry, I've been quite busy lately. I'll look at both perhaps during the weekend or before if I have the time. |
|
Alright so I tried implementing both of your suggestions. The first one was easy, but I didn't feel like submitting a PR for a change so small. Here's the patch anyway: As for the second suggestion, I tried changing the config directory from After having created a container using the distro's version of Toolbx and then switching to the one with these patches applied, it wouldn't let me start the container and it would instead create the old directory along with migrating to the new directory. I'm not totally sure why that is. Here's the related patch: We already have a commit that lists some of the changes needed in order to finish the rename of the project (c3403dae8cb0544e), but I couldn't find any issue opened for tracking the progress. Should I open an issue for this? So all in all, I'm not sure I'm willing to continue working on either of the highlighted suggestions. This is unless I'm able to fix the aforementioned issue such that the migration would be seamless for existing Toolbx users. |
No need to apologize. I was pre-occupied myself because of two conferences - DevConf.cz and Flock.
It looks good to me at a quick glance! No change is too small for a pull request. If nothing else, we get to have the tests run on it. So, please feel free to submit a PR. :) If you are too busy and don't have time for it, then I will commit it myself and attribute it to |
For some reason, calls to 'skopeo copy' to populate the local temporary Docker registry are sometimes hanging indefinitely. Everything was fine on the 28th of May [1]. The problem started with Fedora Rawhide on the 30th of May [2], and spread to Fedora 44 on the 4th of June [3]. Avoid the indefinite hangs and make skopeo(1) fail sooner by using reasonable timeouts - longer for remote network I/O and shorter for local. [1] containers#1799 [2] containers#1798 [3] containers#1769 containers#1811 containers#1815 Signed-off-by: Rolv Apneseth <[email protected]>
Closes #1766
If the $XDG_CONFIG_HOME environment variable is set, we should use it instead of always falling back to $HOME/.config