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

wslConf: convert to freeform type #560

Merged
merged 1 commit into from
Oct 8, 2024
Merged

wslConf: convert to freeform type #560

merged 1 commit into from
Oct 8, 2024

Conversation

nzbr
Copy link
Member

@nzbr nzbr commented Oct 4, 2024

Closes #559

Pretty much what it says on the tin

@nzbr nzbr added the enhancement New feature or request label Oct 4, 2024
@K900
Copy link
Contributor

K900 commented Oct 4, 2024

Maybe make it proper RFC42 then?

@nzbr
Copy link
Member Author

nzbr commented Oct 4, 2024

Should've read that earlier 😅
Naming-wise: Should the options be moved to wsl.settings or stay as wsl.wslConf then? While the first one would be more in the spirit of the RFC from what i gathered so far, it doesn't make it as clear that the values end up in /etc/wsl.conf

@K900
Copy link
Contributor

K900 commented Oct 4, 2024

Maybe wsl.wslConf.settings?

@nzbr
Copy link
Member Author

nzbr commented Oct 4, 2024

Wouldn't that be redundant? All the options currently in wsl.wslConf are 1:1 representations of the config file entries anyway, just with checks attached. I would keep the checks in place and just convert the whole thing to a freeform type

@K900
Copy link
Contributor

K900 commented Oct 4, 2024

I guess we could just keep wsl.wslConf then.

@nzbr nzbr changed the title wslConf: introduce extraOptions wslConf: convert to freeform type Oct 4, 2024
@nzbr
Copy link
Member Author

nzbr commented Oct 4, 2024

Done, seems to work just fine from my quick test

@nzbr nzbr merged commit 9f4fbf5 into main Oct 8, 2024
24 checks passed
@SuperSandro2000 SuperSandro2000 deleted the wsl-conf-extra-options branch October 8, 2024 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide a options.wsl.conf.extraOptions value for other /etc/wsl.conf values
3 participants