Skip to content

client (Win): don't recommend docker on Win 10 Home#6422

Closed
davidpanderson wants to merge 1 commit intomasterfrom
dpa_docker20
Closed

client (Win): don't recommend docker on Win 10 Home#6422
davidpanderson wants to merge 1 commit intomasterfrom
dpa_docker20

Conversation

@davidpanderson
Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings July 9, 2025 09:07
Copy link
Copy Markdown
Contributor

Copilot AI left a 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 refactors the Docker installation notice logic to centralize URL assignment and suppress the recommendation on Windows 10 Home, where WSL is unsupported.

  • Moved url declaration and initialization outside platform-specific branches.
  • Added a check to set url = NULL for Windows 10 Home (identified by “Core” in os_version).
  • Updated the notice condition to only trigger when url is non-null and Docker is missing.
Comments suppressed due to low confidence (2)

client/client_state.cpp:930

  • The #ifndef ANDROID guard was removed, so this Docker notice logic now runs on Android builds as well. Consider reintroducing the Android exclusion to prevent incorrect recommendations on that platform.
    //

client/client_state.cpp:934

  • There’s no unit test for the Windows 10 Home path—consider adding a test to verify that url is cleared and no Docker recommendation is shown for Home editions.
    if (strstr(host_info.os_name, "Windows 10") && strstr(host_info.os_version, "Core")) {

#ifdef _WIN32
const char* url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Windows";
url = "https://github.com/BOINC/boinc/wiki/Installing-Docker-on-Windows";
if (strstr(host_info.os_name, "Windows 10") && strstr(host_info.os_version, "Core")) {
Copy link

Copilot AI Jul 9, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] Detecting Windows 10 Home via substring matching on os_version can be fragile (localization or format changes). It would be more robust to use a dedicated API or an explicit edition field if available.

Copilot uses AI. Check for mistakes.
@AenBleidd
Copy link
Copy Markdown
Member

I'll keep this open since I want to test this first.
I found a little bit confusing information.
Before I read that WSL is not available on Win10 Home, but according to this page it is available.
I'll check this before the weekend and come with an answer

@AenBleidd
Copy link
Copy Markdown
Member

This is not required. WSL2 is available on Windows 10 Home edition (tested on the release 22H2 build 19045.4291).

@AenBleidd AenBleidd closed this Jul 14, 2025
@AenBleidd AenBleidd deleted the dpa_docker20 branch July 14, 2025 23:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants