Skip to content

Report dotnet and powershell as unmanaged While Microsoft's Feed Is Unconfigured #2594

Open

Description

@ptr727

Problem

host-setup/linux/install-tools.sh --report --json marks dotnet and powershell as unavailable when Microsoft's apt feed is not configured and no package is available. An install may still add that feed and install from it, and only the free-text notes say so. A consumer that reads only the structured fields (status, installed, available) sees nothing to install.

This has the same shape as the first case in #2299, applied to a different upstream. #2299 widens unmanaged only for gh and node, since tool_configured names only those two. The Linux README on feature/wsl-2299 names this gap as a known exception rather than claiming every decision rests on the fields.

Constructed Reproduction

The host is Debian on amd64. The distribution carries no dotnet-sdk-* package, and /etc/apt/sources.list.d/ holds neither microsoft-prod.sources nor microsoft-prod.list. The report row is:

{"tool": "dotnet", "installed": null, "available": null, "status": "unavailable", ...}

--install runs dotnet_feed, which falls through to microsoft_feed. That registers the feed, and the install then takes the newest SDK. powershell under --optional reads the same way, and powershell_install registers the feed first.

Suggested Shape

  • Extend tool_configured to report this case as unmanaged, with tests:
    • powershell: no Microsoft feed.
    • dotnet: no Microsoft feed, no distribution SDK, and amd64. Other architectures skip the install, so unavailable stays right for them.
  • Fix dotnet_source at the same time, so the apply log does not name distro as the source of a feed install.
  • Then narrow the README exception again.

Raised by the pre-push review of feature/wsl-2299 (#2299).

Activity

  1. added
    enhancement
    script
    on Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementscript

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions