Skip to content
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

Init config refactor #2035

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

turetske
Copy link
Collaborator

@turetske turetske commented Feb 21, 2025

Moved InitConfig into InitServer and InitClient and adjusts the tests as needed.

Also made InitConfigDir platform agnostic.

Ideally, I would like to be able to make InitConfig private, but its use in the cmd/config_printer test makes that impossible.

I'm worried InitConfig will keep being used in tests until we figure out a solution for that if the author/reviewer don't catch it organically.

Emma Turetsky added 3 commits February 21, 2025 19:44
   -- Moved InitConfig into InitServer and InitClient
   -- Replaced calls of InitConfig with InitServer and InitClient where
possible
   -- Removed calls to InitConfigDir where possible
   -- Adjusted the tests where needed due to the changes made
@turetske turetske requested a review from Saartank February 21, 2025 20:18
@turetske turetske added the internal Internal code improvements, not user-facing label Feb 21, 2025
@turetske turetske added this to the v7.14 milestone Feb 21, 2025
@turetske turetske marked this pull request as draft February 21, 2025 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Internal code improvements, not user-facing
Projects
None yet
2 participants