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

Convert wsl.wslConf to a freeform type #560

Merged
merged 1 commit into from
Oct 8, 2024
Merged

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
@nzbr nzbr requested review from K900 and SuperSandro2000 October 4, 2024 15:48
@K900
Copy link
Contributor

K900 commented Oct 4, 2024

Maybe make it proper RFC42 then?

@nzbr nzbr force-pushed the wsl-conf-extra-options branch from 2722456 to cbf4d80 Compare October 4, 2024 15:50
@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 force-pushed the wsl-conf-extra-options branch from cbf4d80 to 1c04890 Compare October 4, 2024 18:49
@nzbr nzbr changed the title wslConf: introduce extraOptions wslConf: convert to freeform type Oct 4, 2024
@nzbr nzbr force-pushed the wsl-conf-extra-options branch from 1c04890 to 447a110 Compare October 4, 2024 19:06
@nzbr nzbr force-pushed the wsl-conf-extra-options branch from 447a110 to 98e2afd Compare October 4, 2024 19:07
@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
@nzbr nzbr changed the title wslConf: convert to freeform type Convert wsl.wslConf to a freeform type Feb 14, 2025
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