Repository navigation
chore: stop creating the config path in the store - #763
Conversation
The config path is no longer used but is still needed in case PutSecretKey() is called. Create it then as-needed.
Summary of ChangesHello @kalbasit, 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 refactors the directory creation strategy within the local storage implementation. It transitions from eagerly creating certain directories during store initialization to a more efficient, on-demand approach. Directories like the configuration path and NAR information path are now only created when the specific functions that require them are called, optimizing resource usage and streamlining the initial setup process. Highlights
Changelog
Activity
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 refactors the local storage to create the config directory on-demand when needed, which is a good improvement. The related changes in setupDirs and the tests are consistent with this. However, a similar change made to PutNarInfo introduces a redundant directory creation call, as the necessary directory structure is already being created later in the function. I've left a specific comment with a suggestion to remove the redundant code.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #763 +/- ##
=======================================
Coverage 85.41% 85.41%
=======================================
Files 2 2
Lines 480 480
=======================================
Hits 410 410
Misses 65 65
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The config path is no longer used but is still needed in case PutSecretKey() is called. Create it then as-needed. (cherry picked from commit 7a462f6)
|
Successfully created backport PR for |

The config path is no longer used but is still needed in case
PutSecretKey() is called. Create it then as-needed.