-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Update Microsoft.WSL.DeviceHost to remove lxutil.dll dependency #13633
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
base: master
Are you sure you want to change the base?
Conversation
…ersion 1.0.0-20251022.1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR removes the lxutil.dll dependency from the WSL project by upgrading Microsoft.WSL.DeviceHost from version 1.0.0-20251015.1 to 1.0.0-20251022.1. The newer version of DeviceHost no longer requires lxutil.dll, allowing for cleaner dependency management.
Key changes:
- Updated Microsoft.WSL.DeviceHost package version
- Removed lxutil.dll references from build configuration, packaging, and pipeline files
- Reordered test initialization code to ensure proper configuration setup
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| packages.config | Updates DeviceHost package version and removes LxUtil package dependencies for both amd64 and arm64 architectures |
| CMakeLists.txt | Removes lxutil.dll from build configuration including package finding, file linking, and compile definitions |
| msipackage/package.wix.in | Removes lxutil.dll from MSI package installation files |
| .pipelines/build-stage.yml | Removes lxutil.dll from build artifact pattern matching |
| test/windows/DrvFsTests.cpp | Reorders test initialization to create WslConfigChange after LxsstuInitialize but before LxsstuLaunchWsl |
Comments suppressed due to low confidence (1)
test/windows/DrvFsTests.cpp:1
- The reordering of initialization code (moving WslConfigChange creation before LxsstuLaunchWsl) changes test behavior but lacks explanation or test coverage verifying this ordering is correct. Consider adding a test case that validates the configuration is properly applied before WSL launch, or document why this ordering change is necessary for the lxutil.dll removal.
/*++
| VERIFY_ARE_EQUAL(LxsstuInitialize(FALSE), TRUE); \ | ||
| VERIFY_ARE_EQUAL(LxsstuLaunchWsl(LXSST_TESTS_INSTALL_COMMAND_LINE), 0); \ | ||
| m_config.reset(new WslConfigChange(LxssGenerateTestConfig({.drvFsMode = DrvFsMode::##_mode##}))); \ | ||
| VERIFY_ARE_EQUAL(LxsstuLaunchWsl(LXSST_TESTS_INSTALL_COMMAND_LINE), 0); \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not really related, but something I noticed. probably better to make sure the test is using the specified drvfs mode while running the install tests command.
benhillis
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not ready to be merged yet.
This change updates the Microsoft.WSL.DeviceHost to version 1.0.0-20251022.1 which no longer has a dependency on lxutil.dll.